接口 IBlockState
- 所有已知子接口:
IBlockOreRedstoneGlowing
,IMutableBlockState
- 所有已知实现类:
BigIntegerMutableBlockState
,Block
,BlockAcaciaSignPost
,BlockAcaciaWallSign
,BlockAir
,BlockAllow
,BlockAmethyst
,BlockAmethystBud
,BlockAmethystCluster
,BlockAncientDebris
,BlockAnvil
,BlockAzalea
,BlockAzaleaFlowering
,BlockAzaleaLeaves
,BlockAzaleaLeavesFlowered
,BlockBamboo
,BlockBambooSapling
,BlockBanner
,BlockBarrel
,BlockBarrier
,BlockBasalt
,BlockBeacon
,BlockBed
,BlockBedrock
,BlockBedrockInvisible
,BlockBeehive
,BlockBeeNest
,BlockBeetroot
,BlockBell
,BlockBigDripleaf
,BlockBirchSignPost
,BlockBirchWallSign
,BlockBlackstone
,BlockBlackstoneGilded
,BlockBlackstonePolished
,BlockBlackstonePolishedChiseled
,BlockBlastFurnace
,BlockBlastFurnaceBurning
,BlockBlueIce
,BlockBone
,BlockBookshelf
,BlockBorder
,BlockBrewingStand
,BlockBricks
,BlockBricksBlackstonePolished
,BlockBricksBlackstonePolishedCracked
,BlockBricksDeepslate
,BlockBricksDeepslateCracked
,BlockBricksEndStone
,BlockBricksNether
,BlockBricksNetherChiseled
,BlockBricksNetherCracked
,BlockBricksQuartz
,BlockBricksRedNether
,BlockBricksStone
,BlockBubbleColumn
,BlockBuddingAmethyst
,BlockButton
,BlockButtonAcacia
,BlockButtonBirch
,BlockButtonBlackstonePolished
,BlockButtonCrimson
,BlockButtonDarkOak
,BlockButtonJungle
,BlockButtonMangrove
,BlockButtonSpruce
,BlockButtonStone
,BlockButtonWarped
,BlockButtonWooden
,BlockCactus
,BlockCake
,BlockCalcite
,BlockCampfire
,BlockCampfireSoul
,BlockCandle
,BlockCandleBlack
,BlockCandleBlue
,BlockCandleBrown
,BlockCandleCake
,BlockCandleCakeBlack
,BlockCandleCakeBlue
,BlockCandleCakeBrown
,BlockCandleCakeCyan
,BlockCandleCakeGray
,BlockCandleCakeGreen
,BlockCandleCakeLightBlue
,BlockCandleCakeLightGray
,BlockCandleCakeLime
,BlockCandleCakeMagenta
,BlockCandleCakeOrange
,BlockCandleCakePink
,BlockCandleCakePurple
,BlockCandleCakeRed
,BlockCandleCakeWhite
,BlockCandleCakeYellow
,BlockCandleCyan
,BlockCandleGray
,BlockCandleGreen
,BlockCandleLightBlue
,BlockCandleLightGray
,BlockCandleLime
,BlockCandleMagenta
,BlockCandleOrange
,BlockCandlePink
,BlockCandlePurple
,BlockCandleRed
,BlockCandleWhite
,BlockCandleYellow
,BlockCarpet
,BlockCarrot
,BlockCartographyTable
,BlockCarvedPumpkin
,BlockCauldron
,BlockCauldronLava
,BlockCaveVines
,BlockCaveVinesBodyWithBerries
,BlockCaveVinesHeadWithBerries
,BlockChain
,BlockChest
,BlockChorusFlower
,BlockChorusPlant
,BlockClay
,BlockCoal
,BlockCobblestone
,BlockCobweb
,BlockCocoa
,BlockCommandBlock
,BlockCommandBlockChain
,BlockCommandBlockRepeating
,BlockComposter
,BlockConcrete
,BlockConcretePowder
,BlockConduit
,BlockCopper
,BlockCopperBase
,BlockCopperCut
,BlockCopperCutExposed
,BlockCopperCutExposedWaxed
,BlockCopperCutOxidized
,BlockCopperCutOxidizedWaxed
,BlockCopperCutWaxed
,BlockCopperCutWeathered
,BlockCopperCutWeatheredWaxed
,BlockCopperExposed
,BlockCopperExposedWaxed
,BlockCopperOxidized
,BlockCopperOxidizedWaxed
,BlockCopperWaxed
,BlockCopperWeathered
,BlockCopperWeatheredWaxed
,BlockCoral
,BlockCoralBlock
,BlockCoralFan
,BlockCoralFanDead
,BlockCoralFanHang
,BlockCoralFanHang2
,BlockCoralFanHang3
,BlockCraftingTable
,BlockCrimsonSignPost
,BlockCrimsonWallSign
,BlockCrops
,BlockCropsStem
,BlockDandelion
,BlockDarkOakSignPost
,BlockDarkOakWallSign
,BlockDaylightDetector
,BlockDaylightDetectorInverted
,BlockDeadBush
,BlockDeepslate
,BlockDeepslateChiseled
,BlockDeepslateCobbled
,BlockDeepslatePolished
,BlockDeny
,BlockDiamond
,BlockDirt
,BlockDirtWithRoots
,BlockDispenser
,BlockDoor
,BlockDoorAcacia
,BlockDoorBirch
,BlockDoorCrimson
,BlockDoorDarkOak
,BlockDoorIron
,BlockDoorJungle
,BlockDoorMangrove
,BlockDoorSpruce
,BlockDoorWarped
,BlockDoorWood
,BlockDoubleMudBrickSlab
,BlockDoublePlant
,BlockDoubleSlab
,BlockDoubleSlabBase
,BlockDoubleSlabBlackstone
,BlockDoubleSlabBlackstonePolished
,BlockDoubleSlabBrickBlackstonePolished
,BlockDoubleSlabBrickDeepslate
,BlockDoubleSlabCopperBase
,BlockDoubleSlabCopperCut
,BlockDoubleSlabCopperCutExposed
,BlockDoubleSlabCopperCutExposedWaxed
,BlockDoubleSlabCopperCutOxidized
,BlockDoubleSlabCopperCutOxidizedWaxed
,BlockDoubleSlabCopperCutWaxed
,BlockDoubleSlabCopperCutWeathered
,BlockDoubleSlabCopperCutWeatheredWaxed
,BlockDoubleSlabCrimson
,BlockDoubleSlabDeepslateCobbled
,BlockDoubleSlabDeepslatePolished
,BlockDoubleSlabMangrove
,BlockDoubleSlabRedSandstone
,BlockDoubleSlabStone
,BlockDoubleSlabStone3
,BlockDoubleSlabStone4
,BlockDoubleSlabTileDeepslate
,BlockDoubleSlabWarped
,BlockDoubleSlabWood
,BlockDragonEgg
,BlockDriedKelpBlock
,BlockDripstone
,BlockDropper
,BlockEmerald
,BlockEnchantingTable
,BlockEnderChest
,BlockEndGateway
,BlockEndPortal
,BlockEndPortalFrame
,BlockEndRod
,BlockEndStone
,BlockFallable
,BlockFallableMeta
,BlockFarmland
,BlockFence
,BlockFenceBase
,BlockFenceCrimson
,BlockFenceGate
,BlockFenceGateAcacia
,BlockFenceGateBirch
,BlockFenceGateCrimson
,BlockFenceGateDarkOak
,BlockFenceGateJungle
,BlockFenceGateMangrove
,BlockFenceGateSpruce
,BlockFenceGateWarped
,BlockFenceMangrove
,BlockFenceNetherBrick
,BlockFenceWarped
,BlockFire
,BlockFireSoul
,BlockFletchingTable
,BlockFlowable
,BlockFlower
,BlockFloweringAzalea
,BlockFlowerPot
,BlockFrogLight
,BlockFrogSpawn
,BlockFungus
,BlockFungusCrimson
,BlockFungusWarped
,BlockFurnace
,BlockFurnaceBurning
,BlockGlass
,BlockGlassPane
,BlockGlassPaneStained
,BlockGlassStained
,BlockGlassTinted
,BlockGlowLichen
,BlockGlowstone
,BlockGold
,BlockGrass
,BlockGrassPath
,BlockGravel
,BlockGrindstone
,BlockHayBale
,BlockHoney
,BlockHoneycombBlock
,BlockHopper
,BlockHugeMushroomBrown
,BlockHugeMushroomRed
,BlockHyphaeCrimson
,BlockHyphaeStrippedCrimson
,BlockHyphaeStrippedWarped
,BlockHyphaeWarped
,BlockIce
,BlockIceFrosted
,BlockIcePacked
,BlockInfestedDeepslate
,BlockInfoUpdate
,BlockIron
,BlockIronBars
,BlockItemFrame
,BlockItemFrameGlow
,BlockJigsaw
,BlockJukebox
,BlockJungleSignPost
,BlockJungleWallSign
,BlockKelp
,BlockLadder
,BlockLantern
,BlockLapis
,BlockLargeAmethystBud
,BlockLava
,BlockLavaStill
,BlockLeaves
,BlockLeaves2
,BlockLectern
,BlockLever
,BlockLichen
,BlockLight
,BlockLightningRod
,BlockLiquid
,BlockLodestone
,BlockLog
,BlockLogStrippedMangrove
,BlockLoom
,BlockMagma
,BlockMangroveLeaves
,BlockMangroveLog
,BlockMangrovePropagule
,BlockMangrovePropaguleHanging
,BlockMangroveRoots
,BlockMangroveSignPost
,BlockMangroveWallSign
,BlockMediumAmethystBud
,BlockMelon
,BlockMeta
,BlockMobSpawner
,BlockMonsterEgg
,BlockMoss
,BlockMossCarpet
,BlockMossStone
,BlockMoving
,BlockMud
,BlockMudBrick
,BlockMudBrickSlab
,BlockMudBrickStairs
,BlockMudBrickWall
,BlockMuddyMangroveRoots
,BlockMushroom
,BlockMushroomBrown
,BlockMushroomRed
,BlockMycelium
,BlockNetherBrick
,BlockNetheriteBlock
,BlockNetherPortal
,BlockNetherrack
,BlockNetherReactor
,BlockNetherSprout
,BlockNetherWart
,BlockNetherWartBlock
,BlockNoteblock
,BlockNylium
,BlockNyliumCrimson
,BlockNyliumWarped
,BlockObserver
,BlockObsidian
,BlockObsidianCrying
,BlockObsidianGlowing
,BlockOchreFrogLight
,BlockOre
,BlockOreCoal
,BlockOreCoalDeepslate
,BlockOreCopper
,BlockOreCopperDeepslate
,BlockOreDiamond
,BlockOreDiamondDeepslate
,BlockOreEmerald
,BlockOreEmeraldDeepslate
,BlockOreGold
,BlockOreGoldDeepslate
,BlockOreGoldNether
,BlockOreIron
,BlockOreIronDeepslate
,BlockOreLapis
,BlockOreLapisDeepslate
,BlockOreQuartz
,BlockOreRedstone
,BlockOreRedstoneDeepslate
,BlockOreRedstoneDeepslateGlowing
,BlockOreRedstoneGlowing
,BlockPackedMud
,BlockPearlescentFrogLight
,BlockPiston
,BlockPistonBase
,BlockPistonHead
,BlockPistonHeadSticky
,BlockPistonSticky
,BlockPlanks
,BlockPlanksCrimson
,BlockPlanksMangrove
,BlockPlanksWarped
,BlockPodzol
,BlockPointedDripstone
,BlockPolishedBasalt
,BlockPotato
,BlockPowderSnow
,BlockPressurePlateAcacia
,BlockPressurePlateBase
,BlockPressurePlateBirch
,BlockPressurePlateBlackstonePolished
,BlockPressurePlateCrimson
,BlockPressurePlateDarkOak
,BlockPressurePlateJungle
,BlockPressurePlateMangrove
,BlockPressurePlateSpruce
,BlockPressurePlateStone
,BlockPressurePlateWarped
,BlockPressurePlateWood
,BlockPrismarine
,BlockPumpkin
,BlockPumpkinLit
,BlockPurpur
,BlockQuartz
,BlockRail
,BlockRailActivator
,BlockRailDetector
,BlockRailPowered
,BlockRaw
,BlockRawCopper
,BlockRawGold
,BlockRawIron
,BlockRedSandstone
,BlockRedstone
,BlockRedstoneComparator
,BlockRedstoneComparatorPowered
,BlockRedstoneComparatorUnpowered
,BlockRedstoneDiode
,BlockRedstoneLamp
,BlockRedstoneLampLit
,BlockRedstoneRepeater
,BlockRedstoneRepeaterPowered
,BlockRedstoneRepeaterUnpowered
,BlockRedstoneTorch
,BlockRedstoneTorchUnlit
,BlockRedstoneWire
,BlockReinForcedDeepSlate
,BlockRespawnAnchor
,BlockRoots
,BlockRootsCrimson
,BlockRootsHanging
,BlockRootsWarped
,BlockSand
,BlockSandstone
,BlockSapling
,BlockScaffolding
,BlockSculk
,BlockSculkCatalyst
,BlockSculkSensor
,BlockSculkShrieker
,BlockSculkVein
,BlockSeagrass
,BlockSeaLantern
,BlockSeaPickle
,BlockShroomlight
,BlockShulkerBox
,BlockSignPost
,BlockSkull
,BlockSlab
,BlockSlabBlackstone
,BlockSlabBlackstonePolished
,BlockSlabBrickBlackstonePolished
,BlockSlabBrickDeepslate
,BlockSlabCopperBase
,BlockSlabCopperCut
,BlockSlabCopperCutExposed
,BlockSlabCopperCutExposedWaxed
,BlockSlabCopperCutOxidized
,BlockSlabCopperCutOxidizedWaxed
,BlockSlabCopperCutWaxed
,BlockSlabCopperCutWeathered
,BlockSlabCopperCutWeatheredWaxed
,BlockSlabCrimson
,BlockSlabDeepslateCobbled
,BlockSlabDeepslatePolished
,BlockSlabMangrove
,BlockSlabRedSandstone
,BlockSlabStone
,BlockSlabStone3
,BlockSlabStone4
,BlockSlabTileDeepslate
,BlockSlabWarped
,BlockSlabWood
,BlockSlime
,BlockSmallAmethystBud
,BlockSmallDripleaf
,BlockSmithingTable
,BlockSmoker
,BlockSmokerBurning
,BlockSmoothBasalt
,BlockSmoothStone
,BlockSnow
,BlockSnowLayer
,BlockSolid
,BlockSolidMeta
,BlockSoulLantern
,BlockSoulSand
,BlockSoulSoil
,BlockSoulTorch
,BlockSponge
,BlockSporeBlossom
,BlockSpruceSignPost
,BlockSpruceWallSign
,BlockStairMangrove
,BlockStairs
,BlockStairsAcacia
,BlockStairsAndesite
,BlockStairsAndesitePolished
,BlockStairsBirch
,BlockStairsBlackstone
,BlockStairsBlackstonePolished
,BlockStairsBrick
,BlockStairsBrickBlackstonePolished
,BlockStairsBrickDeepslate
,BlockStairsCobblestone
,BlockStairsCopperBase
,BlockStairsCopperCut
,BlockStairsCopperCutExposed
,BlockStairsCopperCutExposedWaxed
,BlockStairsCopperCutOxidized
,BlockStairsCopperCutOxidizedWaxed
,BlockStairsCopperCutWaxed
,BlockStairsCopperCutWeathered
,BlockStairsCopperCutWeatheredWaxed
,BlockStairsCrimson
,BlockStairsDarkOak
,BlockStairsDarkPrismarine
,BlockStairsDeepslateCobbled
,BlockStairsDeepslatePolished
,BlockStairsDiorite
,BlockStairsDioritePolished
,BlockStairsEndBrick
,BlockStairsGranite
,BlockStairsGranitePolished
,BlockStairsJungle
,BlockStairsMossyCobblestone
,BlockStairsMossyStoneBrick
,BlockStairsNetherBrick
,BlockStairsPrismarine
,BlockStairsPrismarineBrick
,BlockStairsPurpur
,BlockStairsQuartz
,BlockStairsRedNetherBrick
,BlockStairsRedSandstone
,BlockStairsSandstone
,BlockStairsSmoothQuartz
,BlockStairsSmoothRedSandstone
,BlockStairsSmoothSandstone
,BlockStairsSpruce
,BlockStairsStone
,BlockStairsStoneBrick
,BlockStairsTileDeepslate
,BlockStairsWarped
,BlockStairsWood
,BlockState
,BlockStem
,BlockStemCrimson
,BlockStemMelon
,BlockStemPumpkin
,BlockStemStripped
,BlockStemStrippedCrimson
,BlockStemStrippedWarped
,BlockStemWarped
,BlockStone
,BlockStonecutter
,BlockStonecutterBlock
,BlockStructure
,BlockStructureVoid
,BlockSugarcane
,BlockSweetBerryBush
,BlockTallGrass
,BlockTarget
,BlockTerracotta
,BlockTerracottaGlazed
,BlockTerracottaGlazedBlack
,BlockTerracottaGlazedBlue
,BlockTerracottaGlazedBrown
,BlockTerracottaGlazedCyan
,BlockTerracottaGlazedGray
,BlockTerracottaGlazedGreen
,BlockTerracottaGlazedLightBlue
,BlockTerracottaGlazedLime
,BlockTerracottaGlazedMagenta
,BlockTerracottaGlazedOrange
,BlockTerracottaGlazedPink
,BlockTerracottaGlazedPurple
,BlockTerracottaGlazedRed
,BlockTerracottaGlazedSilver
,BlockTerracottaGlazedWhite
,BlockTerracottaGlazedYellow
,BlockTerracottaStained
,BlockThin
,BlockTilesDeepslate
,BlockTilesDeepslateCracked
,BlockTNT
,BlockTorch
,BlockTransparent
,BlockTransparentMeta
,BlockTrapdoor
,BlockTrapdoorAcacia
,BlockTrapdoorBirch
,BlockTrapdoorCrimson
,BlockTrapdoorDarkOak
,BlockTrapdoorIron
,BlockTrapdoorJungle
,BlockTrapdoorMangrove
,BlockTrapdoorSpruce
,BlockTrapdoorWarped
,BlockTrappedChest
,BlockTripWire
,BlockTripWireHook
,BlockTuff
,BlockTurtleEgg
,BlockUndyedShulkerBox
,BlockUnknown
,BlockVerdantFrogLight
,BlockVine
,BlockVinesNether
,BlockVinesTwisting
,BlockVinesWeeping
,BlockWall
,BlockWallBanner
,BlockWallBase
,BlockWallBlackstone
,BlockWallBlackstonePolished
,BlockWallBrickBlackstonePolished
,BlockWallBrickDeepslate
,BlockWallDeepslateCobbled
,BlockWallDeepslatePolished
,BlockWallSign
,BlockWallTileDeepslate
,BlockWarpedSignPost
,BlockWarpedWallSign
,BlockWarpedWartBlock
,BlockWater
,BlockWaterLily
,BlockWaterStill
,BlockWeightedPressurePlateHeavy
,BlockWeightedPressurePlateLight
,BlockWheat
,BlockWitherRose
,BlockWood
,BlockWood2
,BlockWoodBark
,BlockWoodMangrove
,BlockWoodStripped
,BlockWoodStrippedAcacia
,BlockWoodStrippedBirch
,BlockWoodStrippedDarkOak
,BlockWoodStrippedJungle
,BlockWoodStrippedMangrove
,BlockWoodStrippedOak
,BlockWoodStrippedSpruce
,BlockWool
,ByteMutableBlockState
,IntMutableBlockState
,LongMutableBlockState
,MutableBlockState
,ZeroMutableBlockState
-
方法概要
修饰符和类型方法说明default ItemBlock
default ItemBlock
asItemBlock
(int count) int
已过时。default long
getBigId()
已过时。default int
default Block
getBlock()
default Block
default Block
default Block
default Block
default Block
getBlock
(Level level, int x, int y, int z, int layer, boolean repair, Consumer<BlockStateRepair> callback) default Block
default Block
int
default Block
getBlockRepairing
(Block pos) default Block
getBlockRepairing
(Level level, int x, int y, int z) default Block
getBlockRepairing
(Level level, int x, int y, int z, int layer) default Block
getBlockRepairing
(Level level, int x, int y, int z, int layer, Consumer<BlockStateRepair> callback) default Block
getBlockRepairing
(Level level, BlockVector3 pos, int layer) default Block
getBlockRepairing
(Level level, Vector3 pos) default Block
getBlockRepairing
(Level level, Vector3 pos, int layer) default Block
getBlockRepairing
(Position position, int layer) default boolean
getBooleanValue
(BlockProperty<?> property) boolean
getBooleanValue
(String propertyName) default <T extends BlockProperty<?>>
TgetCheckedProperty
(String propertyName, Class<T> tClass) default <T> T
getCheckedPropertyValue
(String propertyName, Class<T> tClass) int
default int
已过时。default int
getIntValue
(BlockProperty<?> property) int
getIntValue
(String propertyName) int
已过时。default String
default String
default String
default String
getPersistenceValue
(BlockProperty<?> property) getPersistenceValue
(String propertyName) default BlockProperty
getProperty
(String propertyName) default <V extends Serializable>
VgetPropertyValue
(BlockProperty<V> property) getPropertyValue
(String propertyName) default int
default int
已过时。default String
Gets a unique persistence identification for this state based on the block properties.default <V extends Serializable>
VgetUncheckedPropertyValue
(BlockProperty<V> property) default <T> T
getUncheckedPropertyValue
(String propertyName) boolean
-
方法详细资料
-
getBlockId
-
getDataStorage
-
isDefaultState
-
getProperties
-
getLegacyDamage
@PowerNukkitOnly @Since("1.4.0.0-PN") @Deprecated @DeprecationDetails(reason="Can\'t store all data, exists for backward compatibility reasons", since="1.4.0.0-PN", replaceWith="getDataStorage()") @Nonnegative int getLegacyDamage()已过时。 -
getBigDamage
@PowerNukkitOnly @Since("1.4.0.0-PN") @Deprecated @DeprecationDetails(reason="Can\'t store all data, exists for backward compatibility reasons", since="1.4.0.0-PN", replaceWith="getDataStorage()") @Unsigned int getBigDamage()已过时。 -
getSignedBigDamage
@PowerNukkitOnly @Since("1.4.0.0-PN") @Deprecated @DeprecationDetails(reason="Can\'t store all data, exists for backward compatibility reasons", since="1.4.0.0-PN", replaceWith="getDataStorage()") @Nonnegative default int getSignedBigDamage()已过时。 -
getHugeDamage
-
getPropertyValue
- 抛出:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyValueException
- If the new value is not accepted by the property
-
getPropertyValue
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default <V extends Serializable> V getPropertyValue(BlockProperty<V> property) - 抛出:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyValueException
- If the new value is not accepted by the propertyClassCastException
- If the actual property value don't match the type of the given property
-
getUncheckedPropertyValue
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default <V extends Serializable> V getUncheckedPropertyValue(BlockProperty<V> property) - 抛出:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyValueException
- If the new value is not accepted by the property
-
getIntValue
- 抛出:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyMetaException
- If the meta contains invalid data
-
getIntValue
- 抛出:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyMetaException
- If the meta contains invalid data
-
getBooleanValue
- 抛出:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyMetaException
- If the meta contains invalid dataClassCastException
- If the property don't hold boolean values
-
getBooleanValue
- 抛出:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyMetaException
- If the meta contains invalid dataClassCastException
- If the property don't hold boolean values
-
getPersistenceValue
- 抛出:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyMetaException
- If the meta contains invalid data
-
getPersistenceValue
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default String getPersistenceValue(BlockProperty<?> property) - 抛出:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyMetaException
- If the meta contains invalid data
-
getPersistenceName
-
getStateId
Gets a unique persistence identification for this state based on the block properties.If the state holds an invalid meta, the result of
getLegacyStateId()
is returned. -
getMinimalistStateId
-
getLegacyStateId
-
getCurrentState
-
getBlock
- 抛出:
InvalidBlockStateException
- if the state contains invalid property values
-
getBlock
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default Block getBlock(@Nullable Level level, int x, int y, int z) - 抛出:
InvalidBlockStateException
- if the state contains invalid property values
-
getBlock
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default Block getBlock(@Nullable Level level, int x, int y, int z, int layer) - 抛出:
InvalidBlockStateException
- if the state contains invalid property values
-
getBlock
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default Block getBlock(@Nullable Level level, int x, int y, int z, int layer, boolean repair) - 抛出:
InvalidBlockStateException
- if repair is false and the state contains invalid property values
-
getBlock
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default Block getBlock(@Nullable Level level, int x, int y, int z, int layer, boolean repair, @Nullable Consumer<BlockStateRepair> callback) - 抛出:
InvalidBlockStateException
- if repair is false and the state contains invalid property values
-
getBlock
- 抛出:
InvalidBlockStateException
- if the state contains invalid property values
-
getBlock
- 抛出:
InvalidBlockStateException
- if the state contains invalid property values
-
getBlock
- 抛出:
InvalidBlockStateException
- if the state contains invalid property values
-
getBlockRepairing
-
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default Block getBlockRepairing(Position position, int layer) -
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default Block getBlockRepairing(@Nullable Level level, BlockVector3 pos, int layer) -
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default Block getBlockRepairing(@Nullable Level level, Vector3 pos) -
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default Block getBlockRepairing(@Nullable Level level, Vector3 pos, int layer) -
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default Block getBlockRepairing(@Nullable Level level, int x, int y, int z) -
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default Block getBlockRepairing(@Nullable Level level, int x, int y, int z, int layer) -
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default Block getBlockRepairing(@Nullable Level level, int x, int y, int z, int layer, @Nullable Consumer<BlockStateRepair> callback) -
getRuntimeId
-
getFullId
@PowerNukkitOnly @Since("1.4.0.0-PN") @Deprecated @DeprecationDetails(reason="Can\'t store all data, exists for backward compatibility reasons", since="1.4.0.0-PN", replaceWith="the BlockState itself") default int getFullId()已过时。 -
getBigId
@PowerNukkitOnly @Deprecated @DeprecationDetails(reason="Can\'t store all data, exists for backward compatibility reasons", since="1.4.0.0-PN", replaceWith="the BlockState itself") default long getBigId()已过时。 -
getProperty
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default BlockProperty getProperty(String propertyName) -
getCheckedProperty
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default <T extends BlockProperty<?>> T getCheckedProperty(String propertyName, Class<T> tClass) -
getPropertyNames
-
getCheckedPropertyValue
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default <T> T getCheckedPropertyValue(String propertyName, Class<T> tClass) -
getUncheckedPropertyValue
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nonnull default <T> T getUncheckedPropertyValue(String propertyName) -
getBitSize
-
getExactIntStorage
-
asItemBlock
-
asItemBlock
-