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 cunintermediary net/minecraft/class_8425named net/minecraft/block/CheeseBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested 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 intstatic final intprivate static final intprivate static final intprivate static final intstatic final VoxelShape[]static final IntPropertyFields 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, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.private static intcreateFlag(int corner) floatgetAmbientOcclusionLightLevel(BlockState state, BlockView world, BlockPos pos) private static intgetClosestSlice(BlockState state, Vec3d pos) getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) private static booleanhasCorner(int flags, int corner) booleanhasSidedTransparency(BlockState state) Returns whether the block's transparency depends on the side of the block, like slabs.private static booleanisFull(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 intremoveCorner(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, toStringMethods 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, shouldLetAirThroughMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 aLcun;a:Iintermediary field_44222Lnet/minecraft/class_8425;field_44222:Inamed field_44222Lnet/minecraft/block/CheeseBlock;field_44222:I
-
field_44227
private static final int field_44227- See Also:
- Mappings:
Namespace Name Mixin selector official fLcun;f:Iintermediary field_44227Lnet/minecraft/class_8425;field_44227:Inamed field_44227Lnet/minecraft/block/CheeseBlock;field_44227:I
-
field_44223
public static final int field_44223- See Also:
- Mappings:
Namespace Name Mixin selector official bLcun;b:Iintermediary field_44223Lnet/minecraft/class_8425;field_44223:Inamed field_44223Lnet/minecraft/block/CheeseBlock;field_44223:I
-
field_44228
private static final int field_44228- See Also:
- Mappings:
Namespace Name Mixin selector official gLcun;g:Iintermediary field_44228Lnet/minecraft/class_8425;field_44228:Inamed field_44228Lnet/minecraft/block/CheeseBlock;field_44228:I
-
SLICES
- Mappings:
Namespace Name Mixin selector official cLcun;c:Ldhi;intermediary field_44224Lnet/minecraft/class_8425;field_44224:Lnet/minecraft/class_2758;named SLICESLnet/minecraft/block/CheeseBlock;SLICES:Lnet/minecraft/state/property/IntProperty;
-
CORNER_SHAPES
- Mappings:
Namespace Name Mixin selector official dLcun;d:[Lejb;intermediary field_44225Lnet/minecraft/class_8425;field_44225:[Lnet/minecraft/class_265;named CORNER_SHAPESLnet/minecraft/block/CheeseBlock;CORNER_SHAPES:[Lnet/minecraft/util/shape/VoxelShape;
-
SHAPES
- Mappings:
Namespace Name Mixin selector official eLcun;e:[Lejb;intermediary field_44226Lnet/minecraft/class_8425;field_44226:[Lnet/minecraft/class_265;named SHAPESLnet/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 hLcun;h:Iintermediary field_44229Lnet/minecraft/class_8425;field_44229:Inamed field_44229Lnet/minecraft/block/CheeseBlock;field_44229:I
-
-
Constructor Details
-
CheeseBlock
- Mappings:
Namespace Name Mixin selector official <init>Ldgg;<init>(Ldgg$d;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <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 aLcun;a(II)Zintermediary method_50856Lnet/minecraft/class_8425;method_50856(II)Znamed hasCornerLnet/minecraft/block/CheeseBlock;hasCorner(II)Z
-
createFlag
private static int createFlag(int corner) - Mappings:
Namespace Name Mixin selector official bLcun;b(I)Iintermediary method_50859Lnet/minecraft/class_8425;method_50859(I)Inamed createFlagLnet/minecraft/block/CheeseBlock;createFlag(I)I
-
removeCorner
private static int removeCorner(int flags, int corner) - Mappings:
Namespace Name Mixin selector official bLcun;b(II)Iintermediary method_50860Lnet/minecraft/class_8425;method_50860(II)Inamed removeCornerLnet/minecraft/block/CheeseBlock;removeCorner(II)I
-
isFull
- Mappings:
Namespace Name Mixin selector official hLcun;h(Ldgh;)Zintermediary method_50862Lnet/minecraft/class_8425;method_50862(Lnet/minecraft/class_2680;)Znamed isFullLnet/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:
onUsein classAbstractBlock- Returns:
- an action result that specifies if using the block was successful.
- Mappings:
Namespace Name Mixin selector official aLdgg;a(Ldgh;Lcql;Lgt;Lcby;Lbhh;Leie;)Lbhi;intermediary method_9534Lnet/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 onUseLnet/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 aLcun;a(Ldgh;Leii;)Iintermediary method_50857Lnet/minecraft/class_8425;method_50857(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)Inamed getClosestSliceLnet/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:
getOutlineShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLdgg;a(Ldgh;Lcpr;Lgt;Lein;)Lejb;intermediary method_9530Lnet/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 getOutlineShapeLnet/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:
hasSidedTransparencyin 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;)Zintermediary method_9526Lnet/minecraft/class_4970;method_9526(Lnet/minecraft/class_2680;)Znamed hasSidedTransparencyLnet/minecraft/block/AbstractBlock;hasSidedTransparency(Lnet/minecraft/block/BlockState;)Z
-
getAmbientOcclusionLightLevel
- Overrides:
getAmbientOcclusionLightLevelin classAbstractBlock- Mappings:
Namespace Name Mixin selector official bLdgg;b(Ldgh;Lcpr;Lgt;)Fintermediary method_9575Lnet/minecraft/class_4970;method_9575(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Fnamed getAmbientOcclusionLightLevelLnet/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. SeePropertiesfor the list of pre-defined properties.- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLctm;a(Ldgi$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-