Package net.minecraft.block
Class BannerBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
net.minecraft.block.BannerBlock
- All Implemented Interfaces:
BlockEntityProvider
- Direct Known Subclasses:
BannerBlock.StandingBannerBlock,BannerBlock.WallBannerBlock
- Mappings:
Namespace Name official ajlintermediary net/minecraft/class_2171named net/minecraft/block/BannerBlock
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DirectionPropertyprotected static final Boxstatic final IntPropertyFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanblocksMovement(BlockView view, BlockPos pos) booleancanBePlacedAtPos(World world, BlockPos pos) Returns whether the current block can be placed at a certainBlockPosbooleanReturns whether mobs can spawn inside the block.createBlockEntity(World world, int id) getCollisionBox(BlockState state, World world, BlockPos pos) getDropItem(BlockState blockState, Random random, int state) Returns the item that must be dropped when the block is brokenTranslates and returns the translation keybooleanisFullBoundsCubeForCulling(BlockState blockState) private ItemStackmethod_11547(World world, BlockPos blockPos, BlockState blockState) booleanmethod_11562(BlockState state) method_8640(World world, BlockPos blockPos, BlockState blockState) voidmethod_8651(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack stack) voidrandomDropAsItem(World world, BlockPos pos, BlockState state, float chance, int id) Called when the block must be dropped as an item bydropAsItem, but luck is taken into consideration here.Methods inherited from class net.minecraft.block.BlockWithEntity
getBlockRenderType, method_435, method_8602, method_8603, onBreakingMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendCollisionBoxes, appendItemStacks, appendProperties, areBlocksEqual, canBePlacedAdjacent, canBeReplaced, canCollide, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockState, getBonusDrops, getByBlockState, getById, getCollisionBox, getComparatorOutput, getData, getDefaultState, getDropCount, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getPistonBehavior, getRenderLayerType, getSoundGroup, getStateFromData, getStateFromRawId, getStateManager, getTickRate, getTranslationKey, hasBlockEntity, hasCollision, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isLeafBlock, isTransluscent, method_11557, method_11559, method_11563, method_11564, method_11565, method_11566, method_11568, method_11575, method_11576, method_11577, method_414, method_421, method_8638, method_8641, method_8653, method_8654, method_8664, method_8669, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, requiresSilkTouch, scheduledTick, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, stateFromData, ticksRandomly, toString, useNeighbourLight, withMirror, withRotation
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector official aLajl;a:Larp;intermediary field_9248Lnet/minecraft/class_2171;field_9248:Lnet/minecraft/class_2244;named FACINGLnet/minecraft/block/BannerBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
ROTATION
- Mappings:
Namespace Name Mixin selector official bLajl;b:Larr;intermediary field_9249Lnet/minecraft/class_2171;field_9249:Lnet/minecraft/class_2246;named ROTATIONLnet/minecraft/block/BannerBlock;ROTATION:Lnet/minecraft/state/property/IntProperty;
-
field_12558
- Mappings:
Namespace Name Mixin selector official cLajl;c:Lbbf;intermediary field_12558Lnet/minecraft/class_2171;field_12558:Lnet/minecraft/class_231;named field_12558Lnet/minecraft/block/BannerBlock;field_12558:Lnet/minecraft/util/math/Box;
-
-
Constructor Details
-
BannerBlock
protected BannerBlock()
-
-
Method Details
-
getTranslatedName
Translates and returns the translation key- Overrides:
getTranslatedNamein classBlock- Returns:
- Translated name
- Mappings:
Namespace Name Mixin selector official cLajt;c()Ljava/lang/String;intermediary method_480Lnet/minecraft/class_197;method_480()Ljava/lang/String;named getTranslatedNameLnet/minecraft/block/Block;getTranslatedName()Ljava/lang/String;
-
getCollisionBox
- Overrides:
getCollisionBoxin classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laht;Lcl;)Lbbf;intermediary method_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named getCollisionBoxLnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
method_11562
- Overrides:
method_11562in classBlock- Mappings:
Namespace Name Mixin selector official cLajt;c(Lard;)Zintermediary method_11562Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Znamed method_11562Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
-
blocksMovement
- Overrides:
blocksMovementin classBlock- Mappings:
Namespace Name Mixin selector official bLajt;b(Lahx;Lcl;)Zintermediary method_8663Lnet/minecraft/class_197;method_8663(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Znamed blocksMovementLnet/minecraft/block/Block;blocksMovement(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-
isFullBoundsCubeForCulling
- Overrides:
isFullBoundsCubeForCullingin classBlock- Mappings:
Namespace Name Mixin selector official bLajt;b(Lard;)Zintermediary method_11560Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Znamed isFullBoundsCubeForCullingLnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
-
canMobSpawnInside
public boolean canMobSpawnInside()Returns whether mobs can spawn inside the block. Used for Air.- Overrides:
canMobSpawnInsidein classBlock- Returns:
- Whether mobs can spawn inside the block
- Mappings:
Namespace Name Mixin selector official dLajt;d()Zintermediary method_8678Lnet/minecraft/class_197;method_8678()Znamed canMobSpawnInsideLnet/minecraft/block/Block;canMobSpawnInside()Z
-
createBlockEntity
- Mappings:
Namespace Name Mixin selector official aLalg;a(Laht;I)Lapv;intermediary method_309Lnet/minecraft/class_1451;method_309(Lnet/minecraft/class_1150;I)Lnet/minecraft/class_226;named createBlockEntityLnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/world/World;I)Lnet/minecraft/block/entity/BlockEntity;
-
getDropItem
Returns the item that must be dropped when the block is broken- Overrides:
getDropItemin classBlock- Parameters:
blockState- The block's BlockStaterandom- Random objectstate- State- Returns:
- The Item that drops after the block breaks
- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Ljava/util/Random;I)Lado;intermediary method_398Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;named getDropItemLnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
-
method_11547
- Mappings:
Namespace Name Mixin selector official eLajl;e(Laht;Lcl;Lard;)Ladq;intermediary method_11547Lnet/minecraft/class_2171;method_11547(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_1071;named method_11547Lnet/minecraft/block/BannerBlock;method_11547(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
-
method_8640
- Overrides:
method_8640in classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lard;)Ladq;intermediary method_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_1071;named method_8640Lnet/minecraft/block/Block;method_8640(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
-
randomDropAsItem
Called when the block must be dropped as an item bydropAsItem, but luck is taken into consideration here.- Overrides:
randomDropAsItemin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStatechance- The chance (luck factor)id- Id- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lard;FI)Vintermediary method_410Lnet/minecraft/class_197;method_410(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;FI)Vnamed randomDropAsItemLnet/minecraft/block/Block;randomDropAsItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;FI)V
-
canBePlacedAtPos
Returns whether the current block can be placed at a certainBlockPos- Overrides:
canBePlacedAtPosin classBlock- Returns:
- Whether the current block can be placed at a BlockPos
- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;)Zintermediary method_8673Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed canBePlacedAtPosLnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
method_8651
public void method_8651(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, @Nullable ItemStack stack) - Overrides:
method_8651in classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lzj;Lcl;Lard;Lapv;Ladq;)Vintermediary method_8651Lnet/minecraft/class_197;method_8651(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_226;Lnet/minecraft/class_1071;)Vnamed method_8651Lnet/minecraft/block/Block;method_8651(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/item/ItemStack;)V
-