Package net.minecraft.block
Class BlockWithEntity
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
- All Implemented Interfaces:
BlockEntityProvider
- Direct Known Subclasses:
AbstractSignBlock,BannerBlock,BeaconBlock,BrewingStandBlock,ChestBlock,CommandBlock,DaylightDetectorBlock,DispenserBlock,EnchantingTableBlock,EnderChestBlock,EndGatewayBlock,EndPortalBlock,FlowerPotBlock,FurnaceBlock,HopperBlock,JukeboxBlock,MobSpawnerBlock,NoteBlock,PistonExtensionBlock,SkeletonSkullBlock,StructureBlock
- Mappings:
Namespace Name official ajnintermediary net/minecraft/class_133named net/minecraft/block/BlockWithEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
Fields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, blockSoundGroup, collisionBox, EMPTY_BOX, fullBlock, hardness, lightLevel, material, materialColor, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBlockWithEntity(Material material) protectedBlockWithEntity(Material material, MaterialColor color) -
Method Summary
Modifier and TypeMethodDescriptiongetBlockRenderType(BlockState state) booleanmethod_435(BlockState blockState, World world, BlockPos blockPos, int int2, int int3) protected booleanmethod_8602(World world, BlockPos blockPos, Direction direction) protected booleanmethod_8603(World world, BlockPos blockPos) voidonBreaking(World world, BlockPos pos, BlockState state) Runs when the block is removed (by an entity or explosion).Methods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendCollisionBoxes, appendItemStacks, appendProperties, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canBePlacedAtPos, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockState, getBonusDrops, getByBlockState, getById, getCollisionBox, getCollisionBox, getComparatorOutput, getData, getDefaultState, getDropCount, getDropItem, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getPistonBehavior, getRenderLayerType, getSoundGroup, getStateFromData, getStateFromRawId, getStateManager, getTickRate, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isFullBoundsCubeForCulling, isLeafBlock, isTransluscent, method_11557, method_11559, method_11562, method_11563, method_11564, method_11565, method_11566, method_11568, method_11575, method_11576, method_11577, method_414, method_421, method_8638, method_8640, method_8641, method_8651, method_8653, method_8654, method_8664, method_8669, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, scheduledTick, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, stateFromData, ticksRandomly, toString, useNeighbourLight, withMirror, withRotationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.BlockEntityProvider
createBlockEntity
-
Constructor Details
-
BlockWithEntity
- Parameters:
material- The block's material- Mappings:
Namespace Name Mixin selector official <init>Lajt;<init>(Laxe;)Vintermediary <init>Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_63;)Vnamed <init>Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;)V
-
BlockWithEntity
- Parameters:
material- The block's materialcolor- The block's material color- Mappings:
Namespace Name Mixin selector official <init>Lajt;<init>(Laxe;Laxf;)Vintermediary <init>Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_63;Lnet/minecraft/class_65;)Vnamed <init>Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;Lnet/minecraft/block/MaterialColor;)V
-
-
Method Details
-
method_8602
- Mappings:
Namespace Name Mixin selector official aLajn;a(Laht;Lcl;Lcs;)Zintermediary method_8602Lnet/minecraft/class_133;method_8602(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed method_8602Lnet/minecraft/block/BlockWithEntity;method_8602(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
method_8603
- Mappings:
Namespace Name Mixin selector official bLajn;b(Laht;Lcl;)Zintermediary method_8603Lnet/minecraft/class_133;method_8603(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed method_8603Lnet/minecraft/block/BlockWithEntity;method_8603(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
getBlockRenderType
- Overrides:
getBlockRenderTypein classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;)Laob;intermediary method_11552Lnet/minecraft/class_197;method_11552(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2733;named getBlockRenderTypeLnet/minecraft/block/Block;getBlockRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
-
onBreaking
Runs when the block is removed (by an entity or explosion).- Overrides:
onBreakingin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official bLajt;b(Laht;Lcl;Lard;)Vintermediary method_8659Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onBreakingLnet/minecraft/block/Block;onBreaking(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
method_435
public boolean method_435(BlockState blockState, World world, BlockPos blockPos, int int2, int int3) - Overrides:
method_435in classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laht;Lcl;II)Zintermediary method_435Lnet/minecraft/class_197;method_435(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;II)Znamed method_435Lnet/minecraft/block/Block;method_435(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;II)Z
-