Class NeoForgePlatformHandler.Internal
java.lang.Object
net.rebel459.unified.neoforge.platform.NeoForgePlatformHandler.Internal
- All Implemented Interfaces:
PlatformHandler.Internal
- Enclosing class:
NeoForgePlatformHandler
public static class NeoForgePlatformHandler.Internal
extends Object
implements PlatformHandler.Internal
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic HashMap<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.Block> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBlockEntityAttachment(net.minecraft.resources.Identifier id, Supplier<T> defaultValue, com.mojang.serialization.MapCodec<T> persistenceCodec, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> syncCodec, BiPredicate<net.minecraft.world.level.block.entity.BlockEntity, net.minecraft.server.level.ServerPlayer> syncPredicate) <T> UnifiedAttachments.Chunk<T> createChunkAttachment(net.minecraft.resources.Identifier id, Supplier<T> defaultValue, com.mojang.serialization.MapCodec<T> persistenceCodec, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> syncCodec, BiPredicate<net.minecraft.world.level.chunk.ChunkAccess, net.minecraft.server.level.ServerPlayer> syncPredicate) net.minecraft.world.item.CreativeModeTabcreateCreativeModeTab(net.minecraft.world.item.CreativeModeTab.Row row, int column, net.minecraft.network.chat.Component displayName, Supplier<net.minecraft.world.item.ItemStack> iconGenerator, net.minecraft.world.item.CreativeModeTab.DisplayItemsGenerator displayItemsGenerator) <T> UnifiedAttachments.Entity<T> createEntityAttachment(net.minecraft.resources.Identifier id, Supplier<T> defaultValue, com.mojang.serialization.MapCodec<T> persistenceCodec, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> syncCodec, BiPredicate<net.minecraft.world.entity.Entity, net.minecraft.server.level.ServerPlayer> syncPredicate, boolean copyOnDeath) <T> UnifiedAttachments.Level<T> createLevelAttachment(net.minecraft.resources.Identifier id, Supplier<T> defaultValue, com.mojang.serialization.MapCodec<T> persistenceCodec, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> syncCodec, BiPredicate<net.minecraft.server.level.ServerLevel, net.minecraft.server.level.ServerPlayer> syncPredicate) voidprepareRegistryNamespace(String namespace)
-
Field Details
-
OXIDIZABLES
public static HashMap<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.Block> OXIDIZABLES
-
-
Constructor Details
-
Internal
public Internal()
-
-
Method Details
-
getModResourceRoots
- Specified by:
getModResourceRootsin interfacePlatformHandler.Internal
-
prepareRegistryNamespace
- Specified by:
prepareRegistryNamespacein interfacePlatformHandler.Internal
-
getOxidizables
- Specified by:
getOxidizablesin interfacePlatformHandler.Internal
-
createCreativeModeTab
public net.minecraft.world.item.CreativeModeTab createCreativeModeTab(net.minecraft.world.item.CreativeModeTab.Row row, int column, net.minecraft.network.chat.Component displayName, Supplier<net.minecraft.world.item.ItemStack> iconGenerator, net.minecraft.world.item.CreativeModeTab.DisplayItemsGenerator displayItemsGenerator) - Specified by:
createCreativeModeTabin interfacePlatformHandler.Internal
-
createEntityAttachment
public <T> UnifiedAttachments.Entity<T> createEntityAttachment(net.minecraft.resources.Identifier id, Supplier<T> defaultValue, com.mojang.serialization.MapCodec<T> persistenceCodec, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> syncCodec, BiPredicate<net.minecraft.world.entity.Entity, net.minecraft.server.level.ServerPlayer> syncPredicate, boolean copyOnDeath) - Specified by:
createEntityAttachmentin interfacePlatformHandler.Internal
-
createBlockEntityAttachment
public <T> UnifiedAttachments.BlockEntity<T> createBlockEntityAttachment(net.minecraft.resources.Identifier id, Supplier<T> defaultValue, com.mojang.serialization.MapCodec<T> persistenceCodec, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> syncCodec, BiPredicate<net.minecraft.world.level.block.entity.BlockEntity, net.minecraft.server.level.ServerPlayer> syncPredicate) - Specified by:
createBlockEntityAttachmentin interfacePlatformHandler.Internal
-
createChunkAttachment
public <T> UnifiedAttachments.Chunk<T> createChunkAttachment(net.minecraft.resources.Identifier id, Supplier<T> defaultValue, com.mojang.serialization.MapCodec<T> persistenceCodec, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> syncCodec, BiPredicate<net.minecraft.world.level.chunk.ChunkAccess, net.minecraft.server.level.ServerPlayer> syncPredicate) - Specified by:
createChunkAttachmentin interfacePlatformHandler.Internal
-
createLevelAttachment
public <T> UnifiedAttachments.Level<T> createLevelAttachment(net.minecraft.resources.Identifier id, Supplier<T> defaultValue, com.mojang.serialization.MapCodec<T> persistenceCodec, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> syncCodec, BiPredicate<net.minecraft.server.level.ServerLevel, net.minecraft.server.level.ServerPlayer> syncPredicate) - Specified by:
createLevelAttachmentin interfacePlatformHandler.Internal
-