Package tschipp.carryon.common.carry
Class CarryOnData
java.lang.Object
tschipp.carryon.common.carry.CarryOnData
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CarryOnData> static final Stringstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, CarryOnData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()net.minecraft.world.level.block.state.BlockStategetBlock()net.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.core.HolderLookup.Provider lookup) net.minecraft.world.entity.player.PlayergetCarryingPlayer(net.minecraft.world.level.Level level) net.minecraft.nbt.CompoundTagnet.minecraft.world.entity.EntitygetEntity(net.minecraft.world.level.Level level) net.minecraft.nbt.CompoundTaggetNbt()intintgetTick()getType()booleanbooleanbooleanvoidsetActiveScript(CarryOnScript script) voidsetBlock(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity tile, net.minecraft.server.level.ServerPlayer player, net.minecraft.core.BlockPos pos) voidsetCarryingPlayer(net.minecraft.world.entity.player.Player player) voidsetEntity(net.minecraft.world.entity.Entity entity) voidsetKeyPressed(boolean val) voidsetSelected(int selectedSlot) voidsetTick(int tick)
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,CarryOnData> STREAM_CODEC -
SERIALIZATION_KEY
- See Also:
-
-
Constructor Details
-
CarryOnData
public CarryOnData(net.minecraft.nbt.CompoundTag data)
-
-
Method Details
-
getType
-
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, net.minecraft.server.level.ServerPlayer player, net.minecraft.core.BlockPos pos) -
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, net.minecraft.core.HolderLookup.Provider lookup) -
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(net.minecraft.world.entity.player.Player player) -
getCarryingPlayer
public net.minecraft.world.entity.player.Player getCarryingPlayer(net.minecraft.world.level.Level level) -
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() -
clone
-
getTick
public int getTick() -
setTick
public void setTick(int tick)
-