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 TypeMethodDescriptionboolean
activeForHand
(net.minecraft.world.InteractionHand hand) protected I
createInfo
(net.minecraft.world.InteractionHand hand) protected abstract I
createInfo
(net.minecraft.world.item.ItemStack item, net.minecraft.world.InteractionHand hand) protected boolean
handSwapCandidate
(net.minecraft.world.InteractionHand newHand) abstract boolean
itemMatches
(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:
createInfo
in classAbstractHandImmersive<I extends AbstractItemInfo>
-
activeForHand
public boolean activeForHand(net.minecraft.world.InteractionHand hand) - Specified by:
activeForHand
in classAbstractHandImmersive<I extends AbstractItemInfo>
-
handSwapCandidate
protected boolean handSwapCandidate(net.minecraft.world.InteractionHand newHand) - Overrides:
handSwapCandidate
in classAbstractHandImmersive<I extends AbstractItemInfo>
-