Class CheeseBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature

public class CheeseBlock extends Block
Mappings:
Namespace Name
official cun
intermediary net/minecraft/class_8425
named net/minecraft/block/CheeseBlock
  • 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

      public static final IntProperty 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

      public static final VoxelShape[] 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

      public static final 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

      protected CheeseBlock(AbstractBlock.Settings settings)
      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

      private static boolean isFull(BlockState state)
      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 class AbstractBlock
      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

      private static int getClosestSlice(BlockState state, Vec3d pos)
      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 class AbstractBlock
      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

      public boolean hasSidedTransparency(BlockState state)
      Returns whether the block's transparency depends on the side of the block, like slabs.
      Overrides:
      hasSidedTransparency in class AbstractBlock
      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

      public float getAmbientOcclusionLightLevel(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      getAmbientOcclusionLightLevel in class AbstractBlock
      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

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Appends block state properties to this block. To use this, override and call StateManager.Builder.add(net.minecraft.state.property.Property<?>[]) inside the method. See Properties for the list of pre-defined properties.
      Overrides:
      appendProperties in class Block
      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