Class CornerMicroblockPart
java.lang.Object
codechicken.multipart.api.part.BaseMultipart
codechicken.microblock.part.MicroblockPart
codechicken.microblock.part.StandardMicroblockPart
codechicken.microblock.part.corner.CornerMicroblockPart
- All Implemented Interfaces:
IMicroOcclusion,IMicroShrinkRender,MultiPart,PartialOcclusionPart,SlottedPart
Created by covers1624 on 21/10/22.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final codechicken.lib.vec.Cuboid6[]static final net.minecraft.world.phys.shapes.VoxelShape[]Fields inherited from class codechicken.microblock.part.StandardMicroblockPart
renderBounds, renderMaskFields inherited from class codechicken.microblock.part.MicroblockPart
material, shape -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncodechicken.lib.vec.Cuboid6net.minecraft.world.phys.shapes.VoxelShapegetShape(net.minecraft.world.phys.shapes.CollisionContext context) Maps toBlockBehaviour.getShape(BlockState, BlockGetter, BlockPos, CollisionContext).intgetSlot()voidsetShape(int size, int slot) General purpose microblock description value.Methods inherited from class codechicken.microblock.part.StandardMicroblockPart
getItemFactoryId, getPartialOcclusionShape, getPriorityClass, getRenderCuboids, getSlotMask, occlusionTest, onAdded, onPartChanged, readUpdate, recalcBoundsMethods inherited from class codechicken.microblock.part.MicroblockPart
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, getCloneStack, getDrops, getExplosionResistance, getLightEmission, getMaterial, getShapeSlot, getSize, getStrength, getType, isTransparent, load, readDesc, save, sendShapeUpdate, writeDescMethods inherited from class codechicken.multipart.api.part.BaseMultipart
bind, hasTile, tileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface codechicken.microblock.part.IMicroOcclusion
getMaterial, getSizeMethods inherited from interface codechicken.microblock.part.IMicroShrinkRender
getSize, isTransparentMethods inherited from interface codechicken.multipart.api.part.MultiPart
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, capCache, click, getBlockSupportShape, getCloneStack, getCollisionShape, getDrops, getExplosionResistance, getInteractionShape, getLightEmission, getModelData, getPlacementSound, getRenderBounds, getRenderOcclusionShape, getStrength, getType, getVisualShape, harvest, hasLevel, hasTile, invalidateConvertedTile, level, load, onChunkLoad, onChunkUnload, onConverted, onEntityCollision, onEntityStanding, onMoved, onNeighborBlockChanged, onRemoved, onWorldJoin, onWorldSeparate, pos, preRemove, readDesc, save, scheduledTick, scheduleTick, sendUpdate, tile, useItemOn, useWithoutItem, writeDescMethods inherited from interface codechicken.multipart.api.part.PartialOcclusionPart
allowCompleteOcclusion
-
Field Details
-
aBounds
public static final codechicken.lib.vec.Cuboid6[] aBounds -
aShapes
public static final net.minecraft.world.phys.shapes.VoxelShape[] aShapes
-
-
Constructor Details
-
CornerMicroblockPart
-
-
Method Details
-
setShape
public void setShape(int size, int slot) Description copied from class:MicroblockPartGeneral purpose microblock description value. These values are only used by subclass overrides in this class, so they can be whatever you would like.- Overrides:
setShapein classMicroblockPart- Parameters:
size- A 28 bit value representing the current sizeslot- A 4 bit value representing the current slot
-
getShape
public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.phys.shapes.CollisionContext context) Description copied from interface:MultiPartMaps toBlockBehaviour.getShape(BlockState, BlockGetter, BlockPos, CollisionContext).If this shape changes after initial placement, call
TileMultipart.markShapeChange(). -
getBounds
public codechicken.lib.vec.Cuboid6 getBounds()- Specified by:
getBoundsin interfaceIMicroOcclusion- Specified by:
getBoundsin interfaceIMicroShrinkRender- Specified by:
getBoundsin classMicroblockPart
-
getMicroFactory
- Specified by:
getMicroFactoryin classStandardMicroblockPart
-
getSlot
public int getSlot()- Specified by:
getSlotin interfaceIMicroOcclusion- Specified by:
getSlotin interfaceIMicroShrinkRender- Overrides:
getSlotin classStandardMicroblockPart
-