Class ChestInfo
java.lang.Object
com.hammy275.immersivemc.client.immersive.info.AbstractImmersiveInfo
com.hammy275.immersivemc.client.immersive.info.ChestInfo
- All Implemented Interfaces:
ImmersiveInfo
-
Field Summary
Modifier and TypeFieldDescriptionnet.minecraft.world.level.block.entity.BlockEntity
boolean
net.minecraft.core.Direction
boolean
double
double
int
net.minecraft.world.phys.AABB[]
net.minecraft.world.phys.Vec3[]
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.core.BlockPos
protected int
Fields inherited from class com.hammy275.immersivemc.client.immersive.info.AbstractImmersiveInfo
pos, slotsHovered, ticksExisted
-
Constructor Summary
ConstructorDescriptionChestInfo
(net.minecraft.world.level.block.entity.BlockEntity chest, net.minecraft.world.level.block.entity.BlockEntity otherChest) -
Method Summary
Modifier and TypeMethodDescriptionint
getNextRow
(int rowIn) int
boolean
Whether this ImmersiveInfo contains valid hitboxes that are ready for use by users in-game.void
nextRow()
Methods inherited from class com.hammy275.immersivemc.client.immersive.info.AbstractImmersiveInfo
getBlockPosition, getSlotHovered, getTicksExisted, isSlotHovered, setSlotHovered, tick
-
Field Details
-
hitboxes
-
chest
public net.minecraft.world.level.block.entity.BlockEntity chest -
otherChest
public net.minecraft.world.level.block.entity.BlockEntity otherChest -
otherPos
public net.minecraft.core.BlockPos otherPos -
forward
public net.minecraft.core.Direction forward -
failRender
public boolean failRender -
rowNum
protected int rowNum -
isOpen
public boolean isOpen -
lastY0
public double lastY0 -
lastY1
public double lastY1 -
openCloseHitboxes
public net.minecraft.world.phys.AABB[] openCloseHitboxes -
openClosePositions
public net.minecraft.world.phys.Vec3[] openClosePositions -
light
public int light
-
-
Constructor Details
-
ChestInfo
public ChestInfo(net.minecraft.world.level.block.entity.BlockEntity chest, net.minecraft.world.level.block.entity.BlockEntity otherChest)
-
-
Method Details
-
nextRow
public void nextRow() -
getNextRow
public int getNextRow(int rowIn) -
getRowNum
public int getRowNum() -
getAllHitboxes
- Specified by:
getAllHitboxes
in interfaceImmersiveInfo
- Overrides:
getAllHitboxes
in classAbstractImmersiveInfo
- Returns:
- The list of all hitboxes this Immersive uses. This can contain null elements, and can return an immutable list implementation if desired.
-
hasHitboxes
public boolean hasHitboxes()Description copied from interface:ImmersiveInfo
Whether this ImmersiveInfo contains valid hitboxes that are ready for use by users in-game.ImmersiveInfo.getAllHitboxes()
will not be called if this method returns false for a given tick.- Specified by:
hasHitboxes
in interfaceImmersiveInfo
- Overrides:
hasHitboxes
in classAbstractImmersiveInfo
- Returns:
- Whether
ImmersiveInfo.getAllHitboxes()
can be safely called and contains expected data.
-