Package net.minecraft

Class class_10595

All Implemented Interfaces:
class_10596, ItemConvertible, ToggleableFeature

public class class_10595 extends PlantBlock implements class_10596
Mappings:
Namespace Name
named net/minecraft/class_10595
intermediary net/minecraft/class_10595
official dor
  • Field Details

    • field_55769

      public static final com.mojang.serialization.MapCodec<class_10595> field_55769
      Mappings:
      Namespace Name Mixin selector
      named field_55769 Lnet/minecraft/class_10595;field_55769:Lcom/mojang/serialization/MapCodec;
      intermediary field_55769 Lnet/minecraft/class_10595;field_55769:Lcom/mojang/serialization/MapCodec;
      official a Ldor;a:Lcom/mojang/serialization/MapCodec;
    • field_55770

      public static final EnumProperty<Direction> field_55770
      Mappings:
      Namespace Name Mixin selector
      named field_55770 Lnet/minecraft/class_10595;field_55770:Lnet/minecraft/state/property/EnumProperty;
      intermediary field_55770 Lnet/minecraft/class_10595;field_55770:Lnet/minecraft/class_2754;
      official b Ldor;b:Ldyo;
    • field_55771

      private final Function<BlockState,VoxelShape> field_55771
      Mappings:
      Namespace Name Mixin selector
      named field_55771 Lnet/minecraft/class_10595;field_55771:Ljava/util/function/Function;
      intermediary field_55771 Lnet/minecraft/class_10595;field_55771:Ljava/util/function/Function;
      official c Ldor;c:Ljava/util/function/Function;
  • Constructor Details

  • Method Details

    • method_66440

      private Function<BlockState,VoxelShape> method_66440()
      Mappings:
      Namespace Name Mixin selector
      named method_66440 Lnet/minecraft/class_10595;method_66440()Ljava/util/function/Function;
      intermediary method_66440 Lnet/minecraft/class_10595;method_66440()Ljava/util/function/Function;
      official q Ldor;q()Ljava/util/function/Function;
    • getCodec

      protected com.mojang.serialization.MapCodec<class_10595> getCodec()
      Specified by:
      getCodec in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_53969 Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
      official a Ldxp;a()Lcom/mojang/serialization/MapCodec;
    • rotate

      public BlockState rotate(BlockState state, BlockRotation rotation)
      Returns state rotated by rotation.

      By default, this returns the provided block state.

      Overrides:
      rotate in class AbstractBlock
      Returns:
      state rotated by rotation
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named rotate Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
      intermediary method_9598 Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
      official a Ldxp;a(Ldxq;Ldqw;)Ldxq;
    • mirror

      public BlockState mirror(BlockState state, BlockMirror mirror)
      Returns state mirrored by mirror.

      By default, this returns the provided block state.

      Overrides:
      mirror in class AbstractBlock
      Returns:
      state mirrored by mirror
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mirror Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
      intermediary method_9569 Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;
      official a Ldxp;a(Ldxq;Ldpf;)Ldxq;
    • canReplace

      public boolean canReplace(BlockState state, ItemPlacementContext context)
      Returns whether the item can replace the block.

      By default, this checks if the block allows replacing and whether the item differs from the block's item. Items composed of multiple blocks, such as candles, vines, or snow layers, should override this to implement additional checks.

      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

      invalid reference
      World#isClient
      .
      Overrides:
      canReplace in class AbstractBlock
      Returns:
      whether the item can replace the block
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named canReplace Lnet/minecraft/block/AbstractBlock;canReplace(Lnet/minecraft/block/BlockState;Lnet/minecraft/item/ItemPlacementContext;)Z
      intermediary method_9616 Lnet/minecraft/class_4970;method_9616(Lnet/minecraft/class_2680;Lnet/minecraft/class_1750;)Z
      official a Ldxp;a(Ldxq;Ldax;)Z
    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      See Also:
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Ldxp;a(Ldxq;Ldgf;Lji;Lfcc;)Lfcr;
    • getPlacementState

      public BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
      intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      official a Ldke;a(Ldax;)Ldxq;
    • 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
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      official a Ldke;a(Ldxr$a;)V