Package codechicken.microblock.api
Class MicroMaterialClient
java.lang.Object
codechicken.microblock.api.MicroMaterialClient
Created by covers1624 on 23/10/22.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDestroyEffects(MicroblockPart part, PartRayTraceResult hit, net.minecraft.client.particle.ParticleEngine engine) voidaddHitEffects(MicroblockPart part, PartRayTraceResult hit, net.minecraft.client.particle.ParticleEngine engine) voidaddLandingEffects(MicroblockPart part, PartRayTraceResult hit, codechicken.lib.vec.Vector3 entity, int numberOfParticles) voidaddRunningEffects(MicroblockPart part, PartRayTraceResult hit, net.minecraft.world.entity.Entity entity) abstract voidcollectParts(@Nullable net.minecraft.world.level.BlockAndTintGetter level, @Nullable net.minecraft.core.BlockPos pos, com.google.common.collect.ImmutableSet<MaskedCuboid> renderCuboids, List<net.minecraft.client.renderer.block.model.BlockModelPart> parts) Collect the model parts of this material.static @Nullable MicroMaterialClientget(MicroMaterial material)
-
Constructor Details
-
MicroMaterialClient
public MicroMaterialClient()
-
-
Method Details
-
get
-
collectParts
public abstract void collectParts(@Nullable @Nullable net.minecraft.world.level.BlockAndTintGetter level, @Nullable @Nullable net.minecraft.core.BlockPos pos, com.google.common.collect.ImmutableSet<MaskedCuboid> renderCuboids, List<net.minecraft.client.renderer.block.model.BlockModelPart> parts) Collect the model parts of this material.- Parameters:
level- The level,nullwhen in inventory, otherwise a view from the chunk batching thread.pos- The position in world,nullwhen in inventory.renderCuboids- The cuboids and their masks we wish to render.parts- The parts.
-
addHitEffects
public void addHitEffects(MicroblockPart part, PartRayTraceResult hit, net.minecraft.client.particle.ParticleEngine engine) -
addDestroyEffects
public void addDestroyEffects(MicroblockPart part, PartRayTraceResult hit, net.minecraft.client.particle.ParticleEngine engine) -
addLandingEffects
public void addLandingEffects(MicroblockPart part, PartRayTraceResult hit, codechicken.lib.vec.Vector3 entity, int numberOfParticles) -
addRunningEffects
public void addRunningEffects(MicroblockPart part, PartRayTraceResult hit, net.minecraft.world.entity.Entity entity)
-