Package codechicken.multipart.api.part
Interface NormalOcclusionPart
- All Superinterfaces:
MultiPart
- All Known Implementing Classes:
ButtonPart,ButtonPart.AcaciaButtonPart,ButtonPart.BirchButtonPart,ButtonPart.CrimsonButtonPart,ButtonPart.DarkOakButtonPart,ButtonPart.JungleButtonPart,ButtonPart.OakButtonPart,ButtonPart.PolishedBlackstoneButtonPart,ButtonPart.SpruceButtonPart,ButtonPart.StoneButtonPart,ButtonPart.WarpedButtonPart,HollowMicroblockPart,LeverPart,McSidedStatePart,McStatePart,PostMicroblockPart,RedstoneTorchPart,SoulTorchPart,TorchPart
Provides standard bounding box based occlusion testing.
If any two parts have overlapping bounding boxes, the test fails
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.shapes.VoxelShapedefault booleanocclusionTest(MultiPart nPart) Perform an occlusion test to determine weather this part andnpartcan 'fit' into this block space.Methods 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, getShape, getStrength, getType, getVisualShape, harvest, hasLevel, hasTile, invalidateConvertedTile, level, load, onAdded, onChunkLoad, onChunkUnload, onConverted, onEntityCollision, onEntityStanding, onMoved, onNeighborBlockChanged, onPartChanged, onRemoved, onWorldJoin, onWorldSeparate, pos, preRemove, readDesc, readUpdate, save, scheduledTick, scheduleTick, sendUpdate, tile, useItemOn, useWithoutItem, writeDesc
-
Method Details
-
getOcclusionShape
net.minecraft.world.phys.shapes.VoxelShape getOcclusionShape() -
occlusionTest
Description copied from interface:MultiPartPerform an occlusion test to determine weather this part andnpartcan 'fit' into this block space.- Specified by:
occlusionTestin interfaceMultiPart- Parameters:
nPart- The part to run the test against.- Returns:
trueif both this part andnpartare able to share this block space.
-