Class RenderBlockTarget
java.lang.Object
me.desht.pneumaticcraft.client.render.pneumatic_armor.RenderBlockTarget
-
Constructor Summary
ConstructorsConstructorDescriptionRenderBlockTarget(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.entity.BlockEntity te, BlockTrackerClientHandler blockTracker) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckValidity(int rangeSq) intnet.minecraft.core.BlockPosgetPos()net.minecraft.network.chat.ComponentgetTitle()voidhack()booleanCheck if this target still has any applicable entries - called after calling tick().voidvoidvoidrender(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource buffer, float partialTicks) booleanscroll(net.minecraftforge.client.event.InputEvent.MouseScrollingEvent event) voidsetTileEntity(net.minecraft.world.level.block.entity.BlockEntity te) booleanvoidtick()voidupdateColor(int color)
-
Constructor Details
-
RenderBlockTarget
public RenderBlockTarget(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.entity.BlockEntity te, BlockTrackerClientHandler blockTracker)
-
-
Method Details
-
getPos
public net.minecraft.core.BlockPos getPos() -
setTileEntity
public void setTileEntity(net.minecraft.world.level.block.entity.BlockEntity te) -
isTargetStillValid
public boolean isTargetStillValid()Check if this target still has any applicable entries - called after calling tick().- Returns:
- true if valid, false otherwise
-
tick
public void tick() -
checkValidity
public void checkValidity(int rangeSq) -
render
public void render(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource buffer, float partialTicks) -
hack
public void hack() -
onHackConfirmServer
public void onHackConfirmServer() -
getHackTime
public int getHackTime() -
scroll
public boolean scroll(net.minecraftforge.client.event.InputEvent.MouseScrollingEvent event) -
updateColor
public void updateColor(int color) -
getTitle
public net.minecraft.network.chat.Component getTitle() -
shouldRemoveNow
public boolean shouldRemoveNow() -
markValid
public void markValid()
-