Class SharedBooks
java.lang.Object
net.ixdarklord.folios.internal.client.handheld.SharedBooks
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()static voidholdArms(net.minecraft.client.model.geom.ModelPart right, net.minecraft.client.model.geom.ModelPart left, boolean crouching, float open) Puts the arms of someone shown reading along with low and forward, angled in under the book's lower edge.static booleanisShown(int holder) static booleanisShown(net.minecraft.world.entity.Entity holder) Whether someone is shown reading along with: their held book is then drawn here, not as their item.static floatopenness(int holder) How far open the book someone holds up is drawn now, 0 shut to 1 open; 1 for none.static voidreceive(GuidePayloads.SharedReading payload) static voidsubmit(net.minecraft.client.player.AbstractClientPlayer player, float partialTicks, com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, int light) static voidtick()Lets go of books not heard of for a while, or whose reader is gone.
-
Method Details
-
isShown
public static boolean isShown(net.minecraft.world.entity.Entity holder) Whether someone is shown reading along with: their held book is then drawn here, not as their item. -
isShown
public static boolean isShown(int holder) -
openness
public static float openness(int holder) How far open the book someone holds up is drawn now, 0 shut to 1 open; 1 for none. -
holdArms
public static void holdArms(net.minecraft.client.model.geom.ModelPart right, net.minecraft.client.model.geom.ModelPart left, boolean crouching, float open) Puts the arms of someone shown reading along with low and forward, angled in under the book's lower edge. -
clear
public static void clear() -
tick
public static void tick()Lets go of books not heard of for a while, or whose reader is gone. -
submit
public static void submit(net.minecraft.client.player.AbstractClientPlayer player, float partialTicks, com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, int light)