Package net.minecraft.block
Class JukeboxBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
net.minecraft.block.JukeboxBlock
- All Implemented Interfaces:
BlockEntityProvider
- Mappings:
Namespace Name official aolintermediary net/minecraft/class_175named net/minecraft/block/JukeboxBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsFields 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 TypeMethodDescriptionprotected StateManagerReturns a new state manager with a property array.createBlockEntity(World world, int id) getBlockRenderType(BlockState state) intgetComparatorOutput(BlockState state, World world, BlockPos pos) intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workbooleanmethod_11577(BlockState state) static voidmethod_13317(class_2934 class_2934) voidmethod_8801(World world, BlockPos blockPos, BlockState blockState, ItemStack itemStack) private voidmethod_8802(World world, BlockPos blockPos, BlockState blockState) voidonBreaking(World world, BlockPos pos, BlockState state) Runs when the block is removed (by an entity or explosion).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.stateFromData(int data) Returns a blockstate of the current block from it's idbooleanuse(World world, BlockPos pos, BlockState state, PlayerEntity player, Hand hand, Direction direction, float float2, float float3, float float4) Methods inherited from class net.minecraft.block.BlockWithEntity
method_435, method_8602, method_8603, method_8651Methods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendCollisionBoxes, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canBePlacedAtPos, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockState, getBonusDrops, getByBlockState, getById, getCollisionBox, 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, isTransluscent, method_11557, method_11559, method_11562, method_11563, method_11564, method_11565, method_11566, method_11568, method_11575, method_11576, method_13315, method_13700, method_13701, method_13702, method_13703, method_13704, method_414, method_8638, method_8640, method_8640, method_8653, method_8654, method_8664, method_8669, onBlockBreak, onBlockBreakStart, onBreak, 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, ticksRandomly, toString, useNeighbourLight, withMirror, withRotation
-
Field Details
-
HAS_RECORD
- Mappings:
Namespace Name Mixin selector official aLaol;a:Latx;intermediary field_9499Lnet/minecraft/class_175;field_9499:Lnet/minecraft/class_2243;named HAS_RECORDLnet/minecraft/block/JukeboxBlock;HAS_RECORD:Lnet/minecraft/state/property/BooleanProperty;
-
-
Constructor Details
-
JukeboxBlock
protected JukeboxBlock()
-
-
Method Details
-
method_13317
- Mappings:
Namespace Name Mixin selector official aLaol;a(Lph;)Vintermediary method_13317Lnet/minecraft/class_175;method_13317(Lnet/minecraft/class_2934;)Vnamed method_13317Lnet/minecraft/block/JukeboxBlock;method_13317(Lnet/minecraft/class_2934;)V
-
use
public boolean use(World world, BlockPos pos, BlockState state, PlayerEntity player, Hand hand, Direction direction, float float2, float float3, float float4) - Overrides:
usein classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Lajs;Lco;Latl;Laay;Lri;Lcv;FFF)Zintermediary method_421Lnet/minecraft/class_197;method_421(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;Lnet/minecraft/class_1354;FFF)Znamed useLnet/minecraft/block/Block;use(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Direction;FFF)Z
-
method_8801
- Mappings:
Namespace Name Mixin selector official aLaol;a(Lajs;Lco;Latl;Lafj;)Vintermediary method_8801Lnet/minecraft/class_175;method_8801(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_1071;)Vnamed method_8801Lnet/minecraft/block/JukeboxBlock;method_8801(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/item/ItemStack;)V
-
method_8802
- Mappings:
Namespace Name Mixin selector official eLaol;e(Lajs;Lco;Latl;)Vintermediary method_8802Lnet/minecraft/class_175;method_8802(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed method_8802Lnet/minecraft/block/JukeboxBlock;method_8802(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
onBreaking
Runs when the block is removed (by an entity or explosion).- Overrides:
onBreakingin classBlockWithEntity- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official bLalu;b(Lajs;Lco;Latl;)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
-
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 aLalu;a(Lajs;Lco;Latl;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
-
createBlockEntity
- Mappings:
Namespace Name Mixin selector official aLani;a(Lajs;I)Lasc;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;
-
method_11577
- Overrides:
method_11577in classBlock- Mappings:
Namespace Name Mixin selector official xLalu;x(Latl;)Zintermediary method_11577Lnet/minecraft/class_197;method_11577(Lnet/minecraft/class_2232;)Znamed method_11577Lnet/minecraft/block/Block;method_11577(Lnet/minecraft/block/BlockState;)Z
-
getComparatorOutput
- Overrides:
getComparatorOutputin classBlock- Mappings:
Namespace Name Mixin selector official cLalu;c(Latl;Lajs;Lco;)Iintermediary method_8686Lnet/minecraft/class_197;method_8686(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Inamed getComparatorOutputLnet/minecraft/block/Block;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
getBlockRenderType
- Overrides:
getBlockRenderTypein classBlockWithEntity- Mappings:
Namespace Name Mixin selector official aLalu;a(Latl;)Laqf;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;
-
stateFromData
Returns a blockstate of the current block from it's id- Overrides:
stateFromDatain classBlock- Parameters:
data- The Blockstate's associated data value- Returns:
- The Default state
- Mappings:
Namespace Name Mixin selector official aLalu;a(I)Latl;intermediary method_8635Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;named stateFromDataLnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
-
getData
Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not work- Overrides:
getDatain classBlock- Parameters:
state- The Blockstate- Returns:
- Zero
- Mappings:
Namespace Name Mixin selector official eLalu;e(Latl;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
appendProperties
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official bLalu;b()Latm;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-