Package cn.nukkit.blockstate
Interface IBlockState
- All Known Subinterfaces:
IBlockOreRedstoneGlowing
,IMutableBlockState
- All Known Implementing Classes:
BigIntegerMutableBlockState
,Block
,BlockAcaciaHangingSign
,BlockAcaciaSignPost
,BlockAcaciaWallSign
,BlockAir
,BlockAllow
,BlockAmethyst
,BlockAmethystBud
,BlockAmethystCluster
,BlockAncientDebris
,BlockAnvil
,BlockAzalea
,BlockAzaleaFlowering
,BlockAzaleaLeaves
,BlockAzaleaLeavesFlowered
,BlockBamboo
,BlockBambooBlock
,BlockBambooButton
,BlockBambooDoor
,BlockBambooDoubleSlab
,BlockBambooFence
,BlockBambooFenceGate
,BlockBambooHangingSign
,BlockBambooMosaic
,BlockBambooMosaicDoubleSlab
,BlockBambooMosaicSlab
,BlockBambooMosaicStairs
,BlockBambooPlanks
,BlockBambooPressurePlate
,BlockBambooSapling
,BlockBambooSlab
,BlockBambooStairs
,BlockBambooStandingSign
,BlockBambooTrapdoor
,BlockBambooWallSign
,BlockBanner
,BlockBarrel
,BlockBarrier
,BlockBasalt
,BlockBeacon
,BlockBed
,BlockBedrock
,BlockBedrockInvisible
,BlockBeehive
,BlockBeeNest
,BlockBeetroot
,BlockBell
,BlockBigDripleaf
,BlockBirchHangingSign
,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
,BlockButtonCherry
,BlockButtonCrimson
,BlockButtonDarkOak
,BlockButtonJungle
,BlockButtonMangrove
,BlockButtonSpruce
,BlockButtonStone
,BlockButtonWarped
,BlockButtonWooden
,BlockCactus
,BlockCake
,BlockCalcite
,BlockCalibratedSculkSensor
,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
,BlockCherryHangingSign
,BlockCherryLeaves
,BlockCherryLog
,BlockCherrySapling
,BlockCherrySignPost
,BlockCherryWallSign
,BlockChest
,BlockChiseledBookshelf
,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
,BlockCrimsonHangingSign
,BlockCrimsonSignPost
,BlockCrimsonWallSign
,BlockCrops
,BlockCropsStem
,BlockDandelion
,BlockDarkOakHangingSign
,BlockDarkOakSignPost
,BlockDarkOakWallSign
,BlockDaylightDetector
,BlockDaylightDetectorInverted
,BlockDeadBush
,BlockDecoratedPot
,BlockDeepslate
,BlockDeepslateChiseled
,BlockDeepslateCobbled
,BlockDeepslatePolished
,BlockDeny
,BlockDiamond
,BlockDirt
,BlockDirtWithRoots
,BlockDispenser
,BlockDoor
,BlockDoorAcacia
,BlockDoorBirch
,BlockDoorCherry
,BlockDoorCrimson
,BlockDoorDarkOak
,BlockDoorIron
,BlockDoorJungle
,BlockDoorMangrove
,BlockDoorSpruce
,BlockDoorWarped
,BlockDoorWood
,BlockDoubleMudBrickSlab
,BlockDoublePlant
,BlockDoubleSlab
,BlockDoubleSlabBase
,BlockDoubleSlabBlackstone
,BlockDoubleSlabBlackstonePolished
,BlockDoubleSlabBrickBlackstonePolished
,BlockDoubleSlabBrickDeepslate
,BlockDoubleSlabCherry
,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
,BlockFenceCherry
,BlockFenceCrimson
,BlockFenceGate
,BlockFenceGateAcacia
,BlockFenceGateBirch
,BlockFenceGateCherry
,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
,BlockHangingSign
,BlockHayBale
,BlockHoney
,BlockHoneycombBlock
,BlockHopper
,BlockHugeMushroomBrown
,BlockHugeMushroomRed
,BlockHyphaeCrimson
,BlockHyphaeStrippedCrimson
,BlockHyphaeStrippedWarped
,BlockHyphaeWarped
,BlockIce
,BlockIceFrosted
,BlockIcePacked
,BlockInfestedDeepslate
,BlockInfoUpdate
,BlockIron
,BlockIronBars
,BlockItemFrame
,BlockItemFrameGlow
,BlockJigsaw
,BlockJukebox
,BlockJungleHangingSign
,BlockJungleSignPost
,BlockJungleWallSign
,BlockKelp
,BlockLadder
,BlockLantern
,BlockLapis
,BlockLargeAmethystBud
,BlockLava
,BlockLavaStill
,BlockLeaves
,BlockLeaves2
,BlockLectern
,BlockLever
,BlockLichen
,BlockLight
,BlockLightningRod
,BlockLiquid
,BlockLodestone
,BlockLog
,BlockLogStrippedCherry
,BlockLogStrippedMangrove
,BlockLoom
,BlockMagma
,BlockMangroveHangingSign
,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
,BlockOakHangingSign
,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
,BlockPinkPetals
,BlockPiston
,BlockPistonBase
,BlockPistonHead
,BlockPistonHeadSticky
,BlockPistonSticky
,BlockPitcherCrop
,BlockPitcherPlant
,BlockPlanks
,BlockPlanksCherry
,BlockPlanksCrimson
,BlockPlanksMangrove
,BlockPlanksWarped
,BlockPodzol
,BlockPointedDripstone
,BlockPolishedBasalt
,BlockPotato
,BlockPowderSnow
,BlockPressurePlateAcacia
,BlockPressurePlateBase
,BlockPressurePlateBirch
,BlockPressurePlateBlackstonePolished
,BlockPressurePlateCherry
,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
,BlockSignBase
,BlockSignPost
,BlockSkull
,BlockSlab
,BlockSlabBlackstone
,BlockSlabBlackstonePolished
,BlockSlabBrickBlackstonePolished
,BlockSlabBrickDeepslate
,BlockSlabCherry
,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
,BlockSnifferEgg
,BlockSnow
,BlockSnowLayer
,BlockSolid
,BlockSolidMeta
,BlockSoulLantern
,BlockSoulSand
,BlockSoulSoil
,BlockSoulTorch
,BlockSponge
,BlockSporeBlossom
,BlockSpruceHangingSign
,BlockSpruceSignPost
,BlockSpruceWallSign
,BlockStairMangrove
,BlockStairs
,BlockStairsAcacia
,BlockStairsAndesite
,BlockStairsAndesitePolished
,BlockStairsBirch
,BlockStairsBlackstone
,BlockStairsBlackstonePolished
,BlockStairsBrick
,BlockStairsBrickBlackstonePolished
,BlockStairsBrickDeepslate
,BlockStairsCherry
,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
,BlockStrippedBambooBlock
,BlockStructure
,BlockStructureVoid
,BlockSugarcane
,BlockSuspiciousGravel
,BlockSuspiciousSand
,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
,BlockTorchflower
,BlockTorchflowerCrop
,BlockTransparent
,BlockTransparentMeta
,BlockTrapdoor
,BlockTrapdoorAcacia
,BlockTrapdoorBirch
,BlockTrapdoorCherry
,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
,BlockWarpedHangingSign
,BlockWarpedSignPost
,BlockWarpedWallSign
,BlockWarpedWartBlock
,BlockWater
,BlockWaterLily
,BlockWaterStill
,BlockWeightedPressurePlateHeavy
,BlockWeightedPressurePlateLight
,BlockWheat
,BlockWitherRose
,BlockWood
,BlockWood2
,BlockWoodBark
,BlockWoodCherry
,BlockWoodMangrove
,BlockWoodStripped
,BlockWoodStrippedAcacia
,BlockWoodStrippedBirch
,BlockWoodStrippedCherry
,BlockWoodStrippedDarkOak
,BlockWoodStrippedJungle
,BlockWoodStrippedMangrove
,BlockWoodStrippedOak
,BlockWoodStrippedSpruce
,BlockWool
,ByteMutableBlockState
,IntMutableBlockState
,LongMutableBlockState
,MutableBlockState
,ZeroMutableBlockState
-
Method Summary
Modifier and TypeMethodDescriptiondefault ItemBlock
default ItemBlock
asItemBlock
(int count) int
Deprecated.default long
getBigId()
Deprecated.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
Deprecated.default int
getIntValue
(BlockProperty<?> property) int
getIntValue
(String propertyName) int
Deprecated.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
Deprecated.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
-
Method Details
-
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()Deprecated. -
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()Deprecated. -
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()Deprecated. -
getHugeDamage
-
getPropertyValue
- Throws:
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") @NotNull default <V extends Serializable> V getPropertyValue(BlockProperty<V> property) - Throws:
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") @NotNull default <V extends Serializable> V getUncheckedPropertyValue(BlockProperty<V> property) - Throws:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyValueException
- If the new value is not accepted by the property
-
getIntValue
- Throws:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyMetaException
- If the meta contains invalid data
-
getIntValue
- Throws:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyMetaException
- If the meta contains invalid data
-
getBooleanValue
- Throws:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyMetaException
- If the meta contains invalid dataClassCastException
- If the property don't hold boolean values
-
getBooleanValue
- Throws:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyMetaException
- If the meta contains invalid dataClassCastException
- If the property don't hold boolean values
-
getPersistenceValue
- Throws:
NoSuchElementException
- If the property is not registeredInvalidBlockPropertyMetaException
- If the meta contains invalid data
-
getPersistenceValue
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default String getPersistenceValue(BlockProperty<?> property) - Throws:
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
- Throws:
InvalidBlockStateException
- if the state contains invalid property values
-
getBlock
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default Block getBlock(@Nullable Level level, int x, int y, int z) - Throws:
InvalidBlockStateException
- if the state contains invalid property values
-
getBlock
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default Block getBlock(@Nullable Level level, int x, int y, int z, int layer) - Throws:
InvalidBlockStateException
- if the state contains invalid property values
-
getBlock
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default Block getBlock(@Nullable Level level, int x, int y, int z, int layer, boolean repair) - Throws:
InvalidBlockStateException
- if repair is false and the state contains invalid property values
-
getBlock
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default Block getBlock(@Nullable Level level, int x, int y, int z, int layer, boolean repair, @Nullable Consumer<BlockStateRepair> callback) - Throws:
InvalidBlockStateException
- if repair is false and the state contains invalid property values
-
getBlock
- Throws:
InvalidBlockStateException
- if the state contains invalid property values
-
getBlock
- Throws:
InvalidBlockStateException
- if the state contains invalid property values
-
getBlock
- Throws:
InvalidBlockStateException
- if the state contains invalid property values
-
getBlockRepairing
-
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default Block getBlockRepairing(Position position, int layer) -
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default Block getBlockRepairing(@Nullable Level level, BlockVector3 pos, int layer) -
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default Block getBlockRepairing(@Nullable Level level, Vector3 pos) -
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default Block getBlockRepairing(@Nullable Level level, Vector3 pos, int layer) -
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default Block getBlockRepairing(@Nullable Level level, int x, int y, int z) -
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default Block getBlockRepairing(@Nullable Level level, int x, int y, int z, int layer) -
getBlockRepairing
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull 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()Deprecated. -
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()Deprecated. -
getProperty
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default BlockProperty getProperty(String propertyName) -
getCheckedProperty
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default <T extends BlockProperty<?>> T getCheckedProperty(String propertyName, Class<T> tClass) -
getPropertyNames
-
getCheckedPropertyValue
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default <T> T getCheckedPropertyValue(String propertyName, Class<T> tClass) -
getUncheckedPropertyValue
@PowerNukkitOnly @Since("1.4.0.0-PN") @NotNull default <T> T getUncheckedPropertyValue(String propertyName) -
getBitSize
-
getExactIntStorage
-
asItemBlock
-
asItemBlock
-