Class AbstractItemImmersive<I extends AbstractItemInfo>
java.lang.Object
com.hammy275.immersivemc.client.immersive_item.AbstractHandImmersive<I>
com.hammy275.immersivemc.client.immersive_item.AbstractItemImmersive<I>
- Direct Known Subclasses:
WrittenBookImmersive
public abstract class AbstractItemImmersive<I extends AbstractItemInfo>
extends AbstractHandImmersive<I>
-
Field Summary
Fields inherited from class com.hammy275.immersivemc.client.immersive_item.AbstractHandImmersive
infos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactiveForHand(net.minecraft.world.InteractionHand hand) protected IcreateInfo(net.minecraft.world.InteractionHand hand) protected abstract IcreateInfo(net.minecraft.world.item.ItemStack item, net.minecraft.world.InteractionHand hand) protected booleanhandSwapCandidate(net.minecraft.world.InteractionHand newHand) abstract booleanitemMatches(net.minecraft.world.item.ItemStack item) Methods inherited from class com.hammy275.immersivemc.client.immersive_item.AbstractHandImmersive
attemptLeftClickAll, isEnabled, onLeftClick, registerAndTickAll, render, renderAll, tick
-
Constructor Details
-
AbstractItemImmersive
public AbstractItemImmersive()
-
-
Method Details
-
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) -
createInfo
- Specified by:
createInfoin classAbstractHandImmersive<I extends AbstractItemInfo>
-
activeForHand
public boolean activeForHand(net.minecraft.world.InteractionHand hand) - Specified by:
activeForHandin classAbstractHandImmersive<I extends AbstractItemInfo>
-
handSwapCandidate
protected boolean handSwapCandidate(net.minecraft.world.InteractionHand newHand) - Overrides:
handSwapCandidatein classAbstractHandImmersive<I extends AbstractItemInfo>
-