Package net.minecraft.block
Class CheeseBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.CheeseBlock
- All Implemented Interfaces:
ItemConvertible
,ToggleableFeature
- Mappings:
Namespace Name official cun
intermediary net/minecraft/class_8425
named net/minecraft/block/CheeseBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VoxelShape[]
static final int
static final int
private static final int
private static final int
private static final int
static final VoxelShape[]
static final IntProperty
Fields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendProperties
(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.private static int
createFlag
(int corner) float
getAmbientOcclusionLightLevel
(BlockState state, BlockView world, BlockPos pos) private static int
getClosestSlice
(BlockState state, Vec3d pos) getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) private static boolean
hasCorner
(int flags, int corner) boolean
hasSidedTransparency
(BlockState state) Returns whether the block's transparency depends on the side of the block, like slabs.private static boolean
isFull
(BlockState state) onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.private static int
removeCorner
(int flags, int corner) Methods inherited from class net.minecraft.block.Block
afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTransparent, method_50848, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, method_50847, method_50855, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotate, scheduledTick, shouldLetAirThrough
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
field_44222
public static final int field_44222- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lcun;a:I
intermediary field_44222
Lnet/minecraft/class_8425;field_44222:I
named field_44222
Lnet/minecraft/block/CheeseBlock;field_44222:I
-
field_44227
private static final int field_44227- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lcun;f:I
intermediary field_44227
Lnet/minecraft/class_8425;field_44227:I
named field_44227
Lnet/minecraft/block/CheeseBlock;field_44227:I
-
field_44223
public static final int field_44223- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lcun;b:I
intermediary field_44223
Lnet/minecraft/class_8425;field_44223:I
named field_44223
Lnet/minecraft/block/CheeseBlock;field_44223:I
-
field_44228
private static final int field_44228- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lcun;g:I
intermediary field_44228
Lnet/minecraft/class_8425;field_44228:I
named field_44228
Lnet/minecraft/block/CheeseBlock;field_44228:I
-
SLICES
- Mappings:
Namespace Name Mixin selector official c
Lcun;c:Ldhi;
intermediary field_44224
Lnet/minecraft/class_8425;field_44224:Lnet/minecraft/class_2758;
named SLICES
Lnet/minecraft/block/CheeseBlock;SLICES:Lnet/minecraft/state/property/IntProperty;
-
CORNER_SHAPES
- Mappings:
Namespace Name Mixin selector official d
Lcun;d:[Lejb;
intermediary field_44225
Lnet/minecraft/class_8425;field_44225:[Lnet/minecraft/class_265;
named CORNER_SHAPES
Lnet/minecraft/block/CheeseBlock;CORNER_SHAPES:[Lnet/minecraft/util/shape/VoxelShape;
-
SHAPES
- Mappings:
Namespace Name Mixin selector official e
Lcun;e:[Lejb;
intermediary field_44226
Lnet/minecraft/class_8425;field_44226:[Lnet/minecraft/class_265;
named SHAPES
Lnet/minecraft/block/CheeseBlock;SHAPES:[Lnet/minecraft/util/shape/VoxelShape;
-
field_44229
private static final int field_44229- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lcun;h:I
intermediary field_44229
Lnet/minecraft/class_8425;field_44229:I
named field_44229
Lnet/minecraft/block/CheeseBlock;field_44229:I
-
-
Constructor Details
-
CheeseBlock
- Mappings:
Namespace Name Mixin selector official <init>
Ldgg;<init>(Ldgg$d;)V
intermediary <init>
Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
named <init>
Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
hasCorner
private static boolean hasCorner(int flags, int corner) - Mappings:
Namespace Name Mixin selector official a
Lcun;a(II)Z
intermediary method_50856
Lnet/minecraft/class_8425;method_50856(II)Z
named hasCorner
Lnet/minecraft/block/CheeseBlock;hasCorner(II)Z
-
createFlag
private static int createFlag(int corner) - Mappings:
Namespace Name Mixin selector official b
Lcun;b(I)I
intermediary method_50859
Lnet/minecraft/class_8425;method_50859(I)I
named createFlag
Lnet/minecraft/block/CheeseBlock;createFlag(I)I
-
removeCorner
private static int removeCorner(int flags, int corner) - Mappings:
Namespace Name Mixin selector official b
Lcun;b(II)I
intermediary method_50860
Lnet/minecraft/class_8425;method_50860(II)I
named removeCorner
Lnet/minecraft/block/CheeseBlock;removeCorner(II)I
-
isFull
- Mappings:
Namespace Name Mixin selector official h
Lcun;h(Ldgh;)Z
intermediary method_50862
Lnet/minecraft/class_8425;method_50862(Lnet/minecraft/class_2680;)Z
named isFull
Lnet/minecraft/block/CheeseBlock;isFull(Lnet/minecraft/block/BlockState;)Z
-
onUse
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player. This, by default, is bound to using the right mouse button.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
world.isClient()
.If the action result is successful on a logical client, then the action will be sent to the logical server for processing.
- Overrides:
onUse
in classAbstractBlock
- Returns:
- an action result that specifies if using the block was successful.
- Mappings:
Namespace Name Mixin selector official a
Ldgg;a(Ldgh;Lcql;Lgt;Lcby;Lbhh;Leie;)Lbhi;
intermediary method_9534
Lnet/minecraft/class_4970;method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;
named onUse
Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
-
getClosestSlice
- Mappings:
Namespace Name Mixin selector official a
Lcun;a(Ldgh;Leii;)I
intermediary method_50857
Lnet/minecraft/class_8425;method_50857(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)I
named getClosestSlice
Lnet/minecraft/block/CheeseBlock;getClosestSlice(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3d;)I
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShape
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Ldgg;a(Ldgh;Lcpr;Lgt;Lein;)Lejb;
intermediary method_9530
Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
named getOutlineShape
Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
-
hasSidedTransparency
Returns whether the block's transparency depends on the side of the block, like slabs.- Overrides:
hasSidedTransparency
in classAbstractBlock
- Returns:
- whether the block's transparency depends on the side of the block, like slabs
- Mappings:
Namespace Name Mixin selector official f_
Ldgg;f_(Ldgh;)Z
intermediary method_9526
Lnet/minecraft/class_4970;method_9526(Lnet/minecraft/class_2680;)Z
named hasSidedTransparency
Lnet/minecraft/block/AbstractBlock;hasSidedTransparency(Lnet/minecraft/block/BlockState;)Z
-
getAmbientOcclusionLightLevel
- Overrides:
getAmbientOcclusionLightLevel
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Ldgg;b(Ldgh;Lcpr;Lgt;)F
intermediary method_9575
Lnet/minecraft/class_4970;method_9575(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)F
named getAmbientOcclusionLightLevel
Lnet/minecraft/block/AbstractBlock;getAmbientOcclusionLightLevel(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)F
-
appendProperties
Appends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])
inside the method. SeeProperties
for the list of pre-defined properties.- Overrides:
appendProperties
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lctm;a(Ldgi$a;)V
intermediary method_9515
Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
named appendProperties
Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-