mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-03-04 06:44:40 +01:00
What is your name?
- Fix frogport nametags not rendering with flywheel on - Bump flywheel version
This commit is contained in:
parent
9c1e0d5886
commit
e201ce7321
3 changed files with 11 additions and 6 deletions
|
@ -23,7 +23,7 @@ use_parchment = true
|
|||
# dependency versions
|
||||
registrate_version = MC1.20-1.3.3
|
||||
flywheel_minecraft_version = 1.20.1
|
||||
flywheel_version = 1.0.0-beta-158
|
||||
flywheel_version = 1.0.0-beta-160
|
||||
jei_minecraft_version = 1.20.1
|
||||
jei_version = 15.10.0.39
|
||||
curios_minecraft_version = 1.20.1
|
||||
|
|
|
@ -492,7 +492,7 @@ public class AllBlockEntityTypes {
|
|||
.blockEntity("item_vault", ItemVaultBlockEntity::new)
|
||||
.validBlocks(AllBlocks.ITEM_VAULT)
|
||||
.register();
|
||||
|
||||
|
||||
public static final BlockEntityEntry<ItemHatchBlockEntity> ITEM_HATCH = REGISTRATE
|
||||
.blockEntity("item_hatch", ItemHatchBlockEntity::new)
|
||||
.validBlocks(AllBlocks.ITEM_HATCH)
|
||||
|
@ -507,11 +507,11 @@ public class AllBlockEntityTypes {
|
|||
|
||||
public static final BlockEntityEntry<FrogportBlockEntity> PACKAGE_FROGPORT = REGISTRATE
|
||||
.blockEntity("package_frogport", FrogportBlockEntity::new)
|
||||
.visual(() -> FrogportVisual::new, false)
|
||||
.visual(() -> FrogportVisual::new, true)
|
||||
.validBlocks(AllBlocks.PACKAGE_FROGPORT)
|
||||
.renderer(() -> FrogportRenderer::new)
|
||||
.register();
|
||||
|
||||
|
||||
public static final BlockEntityEntry<PostboxBlockEntity> PACKAGE_POSTBOX = REGISTRATE
|
||||
.blockEntity("package_postbox", PostboxBlockEntity::new)
|
||||
.validBlocks(AllBlocks.PACKAGE_POSTBOXES.toArray())
|
||||
|
@ -914,7 +914,7 @@ public class AllBlockEntityTypes {
|
|||
.validBlocks(AllBlocks.HAUNTED_BELL)
|
||||
.renderer(() -> BellRenderer::new)
|
||||
.register();
|
||||
|
||||
|
||||
public static final BlockEntityEntry<DeskBellBlockEntity> DESK_BELL = REGISTRATE
|
||||
.blockEntity("desk_bell", DeskBellBlockEntity::new)
|
||||
.validBlocks(AllBlocks.DESK_BELL)
|
||||
|
|
|
@ -4,6 +4,7 @@ import com.mojang.blaze3d.vertex.PoseStack;
|
|||
import com.simibubi.create.AllPartialModels;
|
||||
import com.simibubi.create.foundation.blockEntity.renderer.SmartBlockEntityRenderer;
|
||||
|
||||
import dev.engine_room.flywheel.api.visualization.VisualizationManager;
|
||||
import net.createmod.catnip.render.CachedBuffers;
|
||||
import net.createmod.catnip.render.SuperByteBuffer;
|
||||
import net.createmod.catnip.utility.lang.Components;
|
||||
|
@ -42,6 +43,10 @@ public class FrogportRenderer extends SmartBlockEntityRenderer<FrogportBlockEnti
|
|||
if (blockEntity.addressFilter != null && !blockEntity.addressFilter.isBlank())
|
||||
renderNameplateOnHover(blockEntity, Components.literal(blockEntity.addressFilter), 1, ms, buffer, light);
|
||||
|
||||
if (VisualizationManager.supportsVisualization(blockEntity.getLevel())) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (hasTarget) {
|
||||
diff = blockEntity.target
|
||||
.getExactTargetLocation(blockEntity, blockEntity.getLevel(), blockEntity.getBlockPos())
|
||||
|
@ -86,7 +91,7 @@ public class FrogportRenderer extends SmartBlockEntityRenderer<FrogportBlockEnti
|
|||
|
||||
headPitch = Math.max(headPitch, blockEntity.manualOpenAnimationProgress.getValue(partialTicks) * 60);
|
||||
tongueLength = Math.max(tongueLength, blockEntity.manualOpenAnimationProgress.getValue(partialTicks) * 0.25f);
|
||||
|
||||
|
||||
|
||||
body.center()
|
||||
.rotateYDegrees(yaw)
|
||||
|
|
Loading…
Add table
Reference in a new issue