Class ItemDisplayDataEntry
java.lang.Object
team.lodestar.lodestone.modules.toolkit.inventory.display.ItemDisplayDataEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected final longprotected final net.minecraft.world.item.ItemStack -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetAge()floatgetAngle(float partialTicks) floatgetDistance(float partialTicks) floatgetItemRotation(float partialTicks) floatgetLift(float partialTicks) floatgetScale(float partialTicks) longgetSeed()net.minecraft.world.item.ItemStackgetStack()setAngle(float angle) setDistance(float distance) setItemAngle(float itemAngle) setLift(float lift) voidtick(ItemStackHandlerItemDisplayData data, float targetAngle, float addedItemAngle, float targetDistance, float targetLift, float targetScale)
-
Field Details
-
stack
protected final net.minecraft.world.item.ItemStack stack -
seed
protected final long seed -
scale
protected float scale -
oldScale
protected float oldScale -
angle
protected float angle -
oldAngle
protected float oldAngle -
distance
protected float distance -
oldDistance
protected float oldDistance -
lift
protected float lift -
oldLift
protected float oldLift -
itemAngle
protected float itemAngle -
oldItemAngle
protected float oldItemAngle -
age
protected int age
-
-
Constructor Details
-
ItemDisplayDataEntry
public ItemDisplayDataEntry(net.minecraft.world.item.ItemStack stack, long seed)
-
-
Method Details
-
setAngle
-
setDistance
-
setLift
-
setItemAngle
-
tick
public void tick(ItemStackHandlerItemDisplayData data, float targetAngle, float addedItemAngle, float targetDistance, float targetLift, float targetScale) -
getSeed
public long getSeed() -
getAngle
public float getAngle(float partialTicks) -
getDistance
public float getDistance(float partialTicks) -
getLift
public float getLift(float partialTicks) -
getScale
public float getScale(float partialTicks) -
getItemRotation
public float getItemRotation(float partialTicks) -
getStack
public net.minecraft.world.item.ItemStack getStack() -
getAge
public int getAge()
-