Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Cannot resolve method create.
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Xed

Cannot resolve method create.

By Xed, November 14, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Xed    0

Xed

Xed    0

  • Tree Puncher
  • Xed
  • Members
  • 0
  • 10 posts
Posted November 14, 2020

I am trying to make a tile entity but it gives error.

My code:

 


    public static final DeferredRegister<TileEntityType<?>> TILE_ENTITY_TYPES = new DeferredRegister<>(ForgeRegistries.TILE_ENTITIES,vinl.MOD_ID);


    public static final RegistryObject<TileEntityType<PowererTileEntity>> POWERER = TILE_ENTITY_TYPES.register("powerer",()->TileEntityType.Builder.create(PowererTileEntity::new, BlockInit.POWERER.get()).build(null));
  • Quote

Share this post


Link to post
Share on other sites

ChampionAsh5357    160

ChampionAsh5357

ChampionAsh5357    160

  • World Shaper
  • ChampionAsh5357
  • Members
  • 160
  • 1019 posts
Posted November 14, 2020

Read the error and it should tell you what you need to do. A tiny bit of inspection is all that's needed.

  • Quote

Share this post


Link to post
Share on other sites

Xed    0

Xed

Xed    0

  • Tree Puncher
  • Xed
  • Members
  • 0
  • 10 posts
Posted November 15, 2020

It just says: Cannot resolve method 'create(<method reference>, net.minecraftforge.fml.RegistryObject<net.minecraft.block.Block>)'

  • Quote

Share this post


Link to post
Share on other sites

ChampionAsh5357    160

ChampionAsh5357

ChampionAsh5357    160

  • World Shaper
  • ChampionAsh5357
  • Members
  • 160
  • 1019 posts
Posted November 16, 2020
On 11/15/2020 at 6:51 AM, Xed said:

Cannot resolve method

So you're using a nonexistent method reference. Your second parameter is passing in a RegistryObject instead of a Block.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • dotifo7120
      Do stuff right after login

      By dotifo7120 · Posted 19 minutes ago

      Thank you, works fine 🤗
    • diesieben07
      Do stuff right after login

      By diesieben07 · Posted 34 minutes ago

      Yes, it is server side only. For client-side you can use ClientPlayerNetworkEvent.LoggedInEvent.
    • dotifo7120
      Do stuff right after login

      By dotifo7120 · Posted 39 minutes ago

      Is it only server-side? I tried to use in client and the event wasn't firing. 🙁
    • diesieben07
      Do stuff right after login

      By diesieben07 · Posted 1 hour ago

      PlayerLoggedInEvent
    • dotifo7120
      Do stuff right after login

      By dotifo7120 · Posted 1 hour ago

      Is there an event called when a player enters into the world (fully logged)?
  • Topics

    • dotifo7120
      4
      Do stuff right after login

      By dotifo7120
      Started 1 hour ago

    • T_Jam1
      1
      Windows installer

      By T_Jam1
      Started 2 hours ago

    • Mounty
      3
      Meine Inkompetenz kennt mal wieder keine Grenzen.(Forge 1.16.1)

      By Mounty
      Started 4 hours ago

    • Amperka_pro
      5
      Как применить нбт к предмету.

      By Amperka_pro
      Started 5 hours ago

    • MistyMarshes
      9
      [1.16.4] Get IChunk World / get current World for the overworld.

      By MistyMarshes
      Started 16 hours ago

  • Who's Online (See full list)

    • 5y5t3m
    • magn919
    • ChampionAsh5357
    • Bubbabluehorn
    • Maewolf04
    • LexManos
    • Squrikle
    • Oscelot27
    • diesieben07
    • dotifo7120
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Cannot resolve method create.
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community