Package codechicken.multipart.minecraft
Class TorchPart
java.lang.Object
codechicken.multipart.api.part.BaseMultipart
codechicken.multipart.minecraft.McStatePart
codechicken.multipart.minecraft.McSidedStatePart
codechicken.multipart.minecraft.TorchPart
- All Implemented Interfaces:
AnimateTickPart,FacePart,IconHitEffectsPart,ModelRenderPart,MultiPart,NormalOcclusionPart,SlottedPart
- Direct Known Subclasses:
RedstoneTorchPart,SoulTorchPart
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic net.minecraft.world.phys.shapes.VoxelShapestatic net.minecraft.world.phys.shapes.VoxelShape[]Fields inherited from class codechicken.multipart.minecraft.McStatePart
state -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateTick(net.minecraft.util.RandomSource random) net.minecraft.world.level.block.state.BlockStatenet.minecraft.world.item.ItemStacknet.minecraft.world.phys.shapes.VoxelShapenet.minecraft.core.DirectiongetSide()protected net.minecraft.world.level.block.BlockgetType()Returns theMultipartTyperegistry entry for this part.protected net.minecraft.world.level.block.Block@Nullable MultiPartsetStateOnPlacement(net.minecraft.world.item.context.BlockPlaceContext context) Methods inherited from class codechicken.multipart.minecraft.McSidedStatePart
canStay, drop, dropIfCantStay, getSlotMask, onNeighborBlockChanged, redstoneConductionMapMethods inherited from class codechicken.multipart.minecraft.McStatePart
getBlockSupportShape, getBounds, getBreakingIcon, getBrokenIcon, getCloneStack, getCollisionShape, getCurrentState, getDrops, getInteractionShape, getLightEmission, getPlacementSound, getRenderOcclusionShape, getShape, getStrength, getVisualShape, load, occlusionTest, readDesc, save, 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, 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
-
Field Details
-
STANDING_OCCLUSION
public static net.minecraft.world.phys.shapes.VoxelShape STANDING_OCCLUSION -
WALL_OCCLUSION
public static net.minecraft.world.phys.shapes.VoxelShape[] WALL_OCCLUSION
-
-
Constructor Details
-
TorchPart
public TorchPart() -
TorchPart
public TorchPart(net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getType
Description copied from interface:MultiPartReturns theMultipartTyperegistry entry for this part.- Specified by:
getTypein interfaceMultiPart- Returns:
- The
MultipartType. - See Also:
-
getStandingBlock
protected net.minecraft.world.level.block.Block getStandingBlock() -
getWallBlock
protected net.minecraft.world.level.block.Block getWallBlock() -
defaultBlockState
public net.minecraft.world.level.block.state.BlockState defaultBlockState()- Specified by:
defaultBlockStatein classMcStatePart
-
getDropStack
public net.minecraft.world.item.ItemStack getDropStack()- Specified by:
getDropStackin classMcStatePart
-
getSide
public net.minecraft.core.Direction getSide()- Specified by:
getSidein classMcSidedStatePart
-
getOcclusionShape
public net.minecraft.world.phys.shapes.VoxelShape getOcclusionShape()- Specified by:
getOcclusionShapein interfaceNormalOcclusionPart- Overrides:
getOcclusionShapein classMcStatePart
-
setStateOnPlacement
@Nullable public @Nullable MultiPart setStateOnPlacement(net.minecraft.world.item.context.BlockPlaceContext context) - Overrides:
setStateOnPlacementin classMcStatePart
-
animateTick
public void animateTick(net.minecraft.util.RandomSource random) - Specified by:
animateTickin interfaceAnimateTickPart
-