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
FieldsModifier and TypeFieldDescriptionnet.minecraft.world.level.block.entity.BlockEntitybooleannet.minecraft.core.Directionbooleandoubledoubleintnet.minecraft.world.phys.AABB[]net.minecraft.world.phys.Vec3[]net.minecraft.world.level.block.entity.BlockEntitynet.minecraft.core.BlockPosprotected intFields inherited from class com.hammy275.immersivemc.client.immersive.info.AbstractImmersiveInfo
pos, slotsHovered, ticksExisted -
Constructor Summary
ConstructorsConstructorDescriptionChestInfo(net.minecraft.world.level.block.entity.BlockEntity chest, net.minecraft.world.level.block.entity.BlockEntity otherChest) -
Method Summary
Modifier and TypeMethodDescriptionintgetNextRow(int rowIn) intbooleanWhether this ImmersiveInfo contains valid hitboxes that are ready for use by users in-game.voidnextRow()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:
getAllHitboxesin interfaceImmersiveInfo- Overrides:
getAllHitboxesin 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:ImmersiveInfoWhether 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:
hasHitboxesin interfaceImmersiveInfo- Overrides:
hasHitboxesin classAbstractImmersiveInfo- Returns:
- Whether
ImmersiveInfo.getAllHitboxes()can be safely called and contains expected data.
-