Class MovementContext
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.MovementContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.nbt.CompoundTagbooleannet.minecraft.core.BlockPosnet.minecraft.world.phys.Vec3net.minecraft.world.phys.Vec3net.minecraft.world.phys.Vec3UnaryOperator<net.minecraft.world.phys.Vec3>booleannet.minecraft.world.level.block.state.BlockStatenet.minecraft.nbt.CompoundTagnet.minecraft.world.level.Level -
Constructor Summary
ConstructorsConstructorDescriptionMovementContext(net.minecraft.world.level.Level world, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo info, Contraption contraption) -
Method Summary
Modifier and TypeMethodDescriptionfloatstatic MovementContextreadNBT(net.minecraft.world.level.Level world, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo info, net.minecraft.nbt.CompoundTag nbt, Contraption contraption) net.minecraft.nbt.CompoundTagwriteToNBT(net.minecraft.nbt.CompoundTag nbt)
-
Field Details
-
position
public net.minecraft.world.phys.Vec3 position -
motion
public net.minecraft.world.phys.Vec3 motion -
relativeMotion
public net.minecraft.world.phys.Vec3 relativeMotion -
rotation
-
world
public net.minecraft.world.level.Level world -
state
public net.minecraft.world.level.block.state.BlockState state -
localPos
public net.minecraft.core.BlockPos localPos -
tileData
public net.minecraft.nbt.CompoundTag tileData -
stall
public boolean stall -
firstMovement
public boolean firstMovement -
data
public net.minecraft.nbt.CompoundTag data -
contraption
-
temporaryData
-
-
Constructor Details
-
MovementContext
public MovementContext(net.minecraft.world.level.Level world, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo info, Contraption contraption)
-
-
Method Details
-
getAnimationSpeed
public float getAnimationSpeed() -
readNBT
public static MovementContext readNBT(net.minecraft.world.level.Level world, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo info, net.minecraft.nbt.CompoundTag nbt, Contraption contraption) -
writeToNBT
public net.minecraft.nbt.CompoundTag writeToNBT(net.minecraft.nbt.CompoundTag nbt)
-