Class RotatedInfestedBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature

public class RotatedInfestedBlock extends InfestedBlock
Mappings:
Namespace Name
named net/minecraft/block/RotatedInfestedBlock
intermediary net/minecraft/class_6348
official don
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<RotatedInfestedBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/RotatedInfestedBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46374 Lnet/minecraft/class_6348;field_46374:Lcom/mojang/serialization/MapCodec;
      official b Ldon;b:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • RotatedInfestedBlock

      public RotatedInfestedBlock(Block regularBlock, AbstractBlock.Settings settings)
      Creates an infested block
      Parameters:
      regularBlock - the block this infested block should mimic
      settings - block settings
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/InfestedBlock;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/block/AbstractBlock$Settings;)V
      intermediary <init> Lnet/minecraft/class_2384;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_4970$class_2251;)V
      official <init> Ldom;<init>(Ldkl;Ldxt$d;)V
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<RotatedInfestedBlock> getCodec()
      Overrides:
      getCodec in class InfestedBlock
      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 Ldxt;a()Lcom/mojang/serialization/MapCodec;
    • rotate

      protected 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 Ldxt;a(Ldxu;Ldrb;)Ldxu;
    • 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 Ldkl;a(Ldxv$a;)V
    • 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 Ldkl;a(Ldbf;)Ldxu;