Class BlockDataKey

java.lang.Object
fr.rodofire.ewc.blockdata.BlockDataKey

public class BlockDataKey extends Object
class to store objects that represents a block
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<BlockDataKey>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockDataKey(net.minecraft.world.level.block.state.BlockState state)
     
    BlockDataKey(net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.nbt.CompoundTag tag)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    net.minecraft.world.level.block.state.BlockState
     
    net.minecraft.nbt.CompoundTag
     
    int
     
    void
    setState(net.minecraft.world.level.block.state.BlockState state)
     
    void
    setTag(net.minecraft.nbt.CompoundTag tag)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<BlockDataKey> CODEC
  • Constructor Details

    • BlockDataKey

      public BlockDataKey(net.minecraft.world.level.block.state.BlockState state)
    • BlockDataKey

      public BlockDataKey(net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.nbt.CompoundTag tag)
  • Method Details

    • getState

      public net.minecraft.world.level.block.state.BlockState getState()
    • setState

      public void setState(net.minecraft.world.level.block.state.BlockState state)
    • getTag

      public net.minecraft.nbt.CompoundTag getTag()
    • setTag

      public void setTag(net.minecraft.nbt.CompoundTag tag)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object