Posted November 10, 20213 yr hi today i want to make a tile entity and i have a problem .get() doesnt work, hata i need to do?
November 10, 20213 yr Author my tileentities class: public class TileEntities { public static DeferredRegister<TileEntityType<?>> TILE_ENTITIES = DeferredRegister.create(ForgeRegistries.TILE_ENTITIES, Main.MOD_ID); public static RegistryObject<TileEntityType<AlloySmelterTile>> ALLOY_SMELTER_TILE = TILE_ENTITIES.register("lightning_channeler_tile", () -> TileEntityType.Builder.create(AlloySmelterTile::new, BlockInit.alloysmelter.get()).build(null)); public static void register(IEventBus eventBus) { TILE_ENTITIES.register(eventBus); } }
November 10, 20213 yr Author 8 minutes ago, Luis_ST said: define "doesn't work" i have an error, i dont know what to do
November 10, 20213 yr 1 hour ago, klimooss123 said: i have an error, i dont know what to do post the error
November 11, 20213 yr Author the error is: TILE_ENTITIES.register("alloy_smelter_tile", () -> TileEntityType.Builder.create(AlloySmelterTile::new, BlockInit.alloysmelter.get()).build(null)); ^ symbol: method get() location: variable alloysmelter of type net.minecraft.block.Block
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.