Package codechicken.multipart.minecraft
Class McSidedStatePart
java.lang.Object
codechicken.multipart.api.part.BaseMultipart
codechicken.multipart.minecraft.McStatePart
codechicken.multipart.minecraft.McSidedStatePart
- All Implemented Interfaces:
FacePart,IconHitEffectsPart,ModelRenderPart,MultiPart,NormalOcclusionPart,SlottedPart
- Direct Known Subclasses:
ButtonPart,LeverPart,TorchPart
-
Field Summary
Fields inherited from class codechicken.multipart.minecraft.McStatePart
state -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanStay()voiddrop()booleanabstract net.minecraft.core.DirectiongetSide()inta bitmask of slots that this part fills.voidonNeighborBlockChanged(net.minecraft.core.BlockPos from) Called when a neighbor block changes.intReturn the redstone conduction map for which signal can pass through this part on the face.Methods inherited from class codechicken.multipart.minecraft.McStatePart
defaultBlockState, getBlockSupportShape, getBounds, getBreakingIcon, getBrokenIcon, getCloneStack, getCollisionShape, getCurrentState, getDrops, getDropStack, getInteractionShape, getLightEmission, getOcclusionShape, getPlacementSound, getRenderOcclusionShape, getShape, getStrength, getVisualShape, load, occlusionTest, readDesc, save, setStateOnPlacement, 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.multipart.api.part.IconHitEffectsPart
addDestroyEffects, addHitEffectsMethods inherited from interface codechicken.multipart.api.part.ModelRenderPart
getModelDataMethods inherited from interface codechicken.multipart.api.part.MultiPart
addLandingEffects, addRunningEffects, capCache, click, getBlockSupportShape, getCloneStack, getCollisionShape, getDrops, getExplosionResistance, getInteractionShape, getLightEmission, getPlacementSound, getRenderBounds, getRenderOcclusionShape, getShape, getStrength, getType, getVisualShape, harvest, hasLevel, hasTile, invalidateConvertedTile, level, load, onAdded, onChunkLoad, onChunkUnload, onConverted, onEntityCollision, onEntityStanding, onMoved, onPartChanged, onRemoved, onWorldJoin, onWorldSeparate, pos, preRemove, readDesc, readUpdate, save, scheduledTick, scheduleTick, sendUpdate, tile, useItemOn, useWithoutItem, writeDesc
-
Constructor Details
-
McSidedStatePart
public McSidedStatePart() -
McSidedStatePart
public McSidedStatePart(net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getSide
public abstract net.minecraft.core.Direction getSide() -
onNeighborBlockChanged
public void onNeighborBlockChanged(net.minecraft.core.BlockPos from) Description copied from interface:MultiPartCalled when a neighbor block changes.- Specified by:
onNeighborBlockChangedin interfaceMultiPart- Parameters:
from- The neighbor block.
-
canStay
public boolean canStay() -
dropIfCantStay
public boolean dropIfCantStay() -
drop
public void drop() -
getSlotMask
public int getSlotMask()Description copied from interface:SlottedParta bitmask of slots that this part fills. slot x is 1invalid input: '<'invalid input: '<'x- Specified by:
getSlotMaskin interfaceSlottedPart
-
redstoneConductionMap
public int redstoneConductionMap()Description copied from interface:FacePartReturn the redstone conduction map for which signal can pass through this part on the face. Eg, hollow covers return 0x10 as signal can pass through the center hole.- Specified by:
redstoneConductionMapin interfaceFacePart
-