Class CarryOnData

java.lang.Object
tschipp.carryon.common.carry.CarryOnData

public class CarryOnData extends Object
  • Constructor Details

    • CarryOnData

      public CarryOnData(net.minecraft.nbt.CompoundTag data)
  • Method Details

    • getNbt

      public net.minecraft.nbt.CompoundTag getNbt()
    • getContentNbt

      public net.minecraft.nbt.CompoundTag getContentNbt()
    • setBlock

      public void setBlock(net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity tile)
    • getBlock

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

      @Nullable public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos)
    • setEntity

      public void setEntity(net.minecraft.world.entity.Entity entity)
    • getEntity

      public net.minecraft.world.entity.Entity getEntity(net.minecraft.world.level.Level level)
    • getActiveScript

      public Optional<CarryOnScript> getActiveScript()
    • setActiveScript

      public void setActiveScript(CarryOnScript script)
    • setCarryingPlayer

      public void setCarryingPlayer()
    • isCarrying

      public boolean isCarrying()
    • isCarrying

      public boolean isCarrying(CarryOnData.CarryType type)
    • isKeyPressed

      public boolean isKeyPressed()
    • setKeyPressed

      public void setKeyPressed(boolean val)
    • setSelected

      public void setSelected(int selectedSlot)
    • getSelected

      public int getSelected()
    • clear

      public void clear()
    • getTick

      public int getTick()