Package tschipp.carryon.common.carry
Class CarryOnData
java.lang.Object
tschipp.carryon.common.carry.CarryOnData
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()net.minecraft.world.level.block.state.BlockStategetBlock()net.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos pos) net.minecraft.nbt.CompoundTagnet.minecraft.world.entity.EntitygetEntity(net.minecraft.world.level.Level level) net.minecraft.nbt.CompoundTaggetNbt()intintgetTick()booleanbooleanbooleanvoidsetActiveScript(CarryOnScript script) voidsetBlock(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity tile) voidvoidsetEntity(net.minecraft.world.entity.Entity entity) voidsetKeyPressed(boolean val) voidsetSelected(int selectedSlot)
-
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
-
setActiveScript
-
setCarryingPlayer
public void setCarryingPlayer() -
isCarrying
public boolean isCarrying() -
isCarrying
-
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()
-