Class AbstractItemImmersive<I extends AbstractItemInfo>
java.lang.Object
com.hammy275.immersivemc.client.immersive_item.AbstractItemImmersive<I>
- Direct Known Subclasses:
WrittenBookImmersive
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected abstract I
createInfo
(net.minecraft.world.item.ItemStack item, net.minecraft.world.InteractionHand hand) abstract boolean
abstract boolean
itemMatches
(net.minecraft.world.item.ItemStack item) abstract boolean
onLeftClick
(I info, net.blf02.vrapi.api.data.IVRData hand, net.blf02.vrapi.api.data.IVRData other) void
registerAndTickAll
(net.minecraft.world.item.ItemStack mainStack, net.minecraft.world.item.ItemStack offStack) protected abstract void
void
renderAll
(com.mojang.blaze3d.vertex.PoseStack poseStack) protected abstract void
-
Field Details
-
infos
-
-
Constructor Details
-
AbstractItemImmersive
public AbstractItemImmersive()
-
-
Method Details
-
render
protected abstract void render(I info, com.mojang.blaze3d.vertex.PoseStack stack, net.blf02.vrapi.api.data.IVRData hand) -
tick
protected abstract void tick(I info, net.blf02.vrapi.api.data.IVRData hand, net.blf02.vrapi.api.data.IVRData other) -
itemMatches
public abstract boolean itemMatches(net.minecraft.world.item.ItemStack item) -
createInfo
protected abstract I createInfo(net.minecraft.world.item.ItemStack item, net.minecraft.world.InteractionHand hand) -
isEnabled
public abstract boolean isEnabled() -
onLeftClick
public abstract boolean onLeftClick(I info, net.blf02.vrapi.api.data.IVRData hand, net.blf02.vrapi.api.data.IVRData other) -
attemptLeftClickAll
public boolean attemptLeftClickAll() -
registerAndTickAll
public void registerAndTickAll(net.minecraft.world.item.ItemStack mainStack, net.minecraft.world.item.ItemStack offStack) -
renderAll
public void renderAll(com.mojang.blaze3d.vertex.PoseStack poseStack)
-