Class BlockDataKey

java.lang.Object
net.rodofire.easierworldcreator.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.block.BlockState state)
     
    BlockDataKey(net.minecraft.block.BlockState state, @Nullable net.minecraft.nbt.NbtCompound tag)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    net.minecraft.block.BlockState
     
    net.minecraft.nbt.NbtCompound
     
    int
     
    void
    setState(net.minecraft.block.BlockState state)
     
    void
    setTag(net.minecraft.nbt.NbtCompound 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.block.BlockState state)
    • BlockDataKey

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

    • getState

      public net.minecraft.block.BlockState getState()
    • setState

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

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object