Jump to content

[1.16] Can't register Tile Entity with DefferedRegister


KidKoderMod033109

Recommended Posts

Hi,

So, I'm trying to register a Tile Entity to the game, and I'm using this code:

TILE_ENTITY_TYPES

    public static final DeferredRegister<TileEntityType<?>> TILE_ENTITY_TYPES = DeferredRegister.create(ForgeRegistries.TILE_ENTITIES, "simplycopper");
    public static final RegistryObject<TileEntityType<CopperCoreTileEntity>> COPPER_CORE = TILE_ENTITY_TYPES.register("copper_core", () -> TileEntityType.Builder.create(CopperCoreTileEntity::new, BlockInit.COPPER_CORE).build(null)));

And I get the error: 

Cannot resolve method 'create(<method reference>, net.minecraft.block.Block)'

I have no clue how to fix this.

Here is my CopperCoreTileEntityClass:

Quote

public class CopperCoreTileEntity extends TileEntity {
    public CopperCoreTileEntity(TileEntityType<?> tileEntityTypeIn) {
        super(tileEntityTypeIn);
    }
}

 

Thanks in advance,

Kid Koder

Link to comment
Share on other sites

6 minutes ago, KidKoderMod033109 said:

CopperCoreTileEntity::new

^ No parameters specified

 

6 minutes ago, KidKoderMod033109 said:

public CopperCoreTileEntity(TileEntityType<?> tileEntityTypeIn)

^ 1 parameter required

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Your TileEntity's TileEntityType?

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

No, you're registering a TileEntity with that line. You also, additionally need a TileEntityType.

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • 실시간 베트맨 여행@BCGAME88·COM㏇ 코트디부아르 베트맨 방법 실시간 리조트월드카지노 베트맨 동영상 [본사문의 텔레 JBOX7]실시간 베트맨 ↙☜ 투어 리오올스위트카지노 베트맨 도박장 실시간 에콰도르 실시간 베트맨 사이트 [총판문의 카톡 JBOX7]실시간 베트맨 ■↗ 주소 그랜드리스카지노 베트맨 방송 실시간 아프리카 실시간 베트맨 투어 [각종 오피 커뮤니티 제작]실시간 베트맨 №@ 방법 북마케도니아 베트맨 투어 실시간 캐나다 실시간 베트맨 바카라펍 [마케팅문의]실시간 베트맨 ♬§ 방법 체코 베트맨 홀덤펍 실시간 이비자그란카지노 실시간 베트맨 싸이트 [카지노본사]실시간 베트맨 ○㉿ 경기 유럽 베트맨 홀덤바 실시간 예멘 실시간 베트맨 놀이터 [스포츠본사]실시간 베트맨 ▤& 캐쉬게임 에스토니아 베트맨 주소 실시간 세르비아 실시간 베트맨 영상 [토토본사 문의]실시간 베트맨 ♬º 동영상 리조트월드카지노 베트맨 게임 실시간 벨라지오카지노 실시간 베트맨 경기 [토토총판 구매]실시간 베트맨 ◐↗ 홀덤바 서아프리카 베트맨 여행 실시간 리오올스위트카지노 실시간 베트맨 투어 [카지노총판]실시간 베트맨 □¶ 검증 모잠비크 베트맨 도박장 실시간 미크로네시아 실시간 베트맨 유투브 [야마토본사]실시간 베트맨 ♥↗ 놀이터 선시티 베트맨 투어 실시간 방글라데시 실시간 베트맨 바카라펍 [바카라총판]실시간 베트맨 ◇♤ 도박장 사하라 베트맨 바카라펍 실시간 아메리카 실시간 베트맨 캐쉬게임 [경마총판]윈카지노 베트맨 캐쉬게임 가이아나 베트맨 홀덤펍 [BCGAME 비씨게임 총판문의]알림 설정 추천 구독 좋아요
    • 인터넷 스포츠 게임장▦BCGAME88·COM△ 카자흐스탄 스포츠 게임 인터넷 스리랑카 스포츠 여행 [본사문의 텔레 JBOX7]인터넷 스포츠 ♣™ 모집 세인트루시아 스포츠 동영상 인터넷 모리셔스 인터넷 스포츠 유투브 [총판문의 카톡 JBOX7]인터넷 스포츠 ★♭ 투어 이집트 스포츠 모집 인터넷 바누아투 인터넷 스포츠 캐쉬게임 [각종 오피 커뮤니티 제작]인터넷 스포츠 ☎→ 단톡방 바덴바덴 스포츠 캐쉬게임 인터넷 체코 인터넷 스포츠 동영상 [마케팅문의]인터넷 스포츠 ㉿‡ 총판 레소토 스포츠 카지노펍 인터넷 차드 인터넷 스포츠 싸이트 [카지노본사]인터넷 스포츠 †※ 추천 캐나다 스포츠 바카라펍 인터넷 기니비사우 인터넷 스포츠 카지노펍 [스포츠본사]인터넷 스포츠 ㏂▶ 카지노펍 동아프리카 스포츠 접속 인터넷 시에라리온 인터넷 스포츠 모집 [토토본사 문의]인터넷 스포츠 ★◈ 중계 세이셸 스포츠 커뮤니티 인터넷 스리랑카 인터넷 스포츠 카지노펍 [토토총판 구매]인터넷 스포츠 ☞♡ 방법 이비자그란카지노 스포츠 모집 인터넷 가나 인터넷 스포츠 동영상 [카지노총판]인터넷 스포츠 ♩@ 총판 한국 스포츠 동영상 인터넷 리오올스위트카지노 인터넷 스포츠 홀덤펍 [야마토본사]인터넷 스포츠 ◎↔ 리그 우크라이나 스포츠 추천 인터넷 나이지리아 인터넷 스포츠 업체 [바카라총판]인터넷 스포츠 ▷‡ 방법 리히텐슈타인 스포츠 모집 인터넷 호주 인터넷 스포츠 중계 [경마총판]키리바시 스포츠 토너먼트 멕시코 스포츠 영상 [BCGAME 비씨게임 총판문의]알림 설정 추천 구독 좋아요
    • Start with removing: modernfix and FlyWheel
    • Vigor Vita CBD Gummies- Behind every product is a story. Vigor Vita CBD Gummies's journey involves a commitment to quality, customer satisfaction, and a genuine desire to enhance the well-being of individuals. Understanding the ethos of the company adds depth to the product experience.   Official Website==> https://bestlifecaremart.com/vigor-vita-cbd-gummies/   Facebook==> https://www.facebook.com/GetVigorVitaCBDGummies/   Groups Google:   https://groups.google.com/g/mozilla.dev.platform/c/kAoLq82Obfc   https://groups.google.com/g/comp.os.vms/c/MMy0pLUnU40   https://groups.google.com/g/mozilla.dev.platform/c/op2Zyok7iKI   Sites Google==> https://sites.google.com/view/vigor-vita-c-b-d-gummies-price/home   Gamma==> https://gamma.app/public/Is-Vigor-Vita-CBD-Gummies-Scam-Read-Reviews-Best-CBD-Gummies-Pric-x91kh5meqawi99c   Jimdo==> https://vigor-vita-cbd-gummies-us-reviews-1.jimdosite.com/   Get More Info:   https://medium.com/@yvettieany/vigor-vita-cbd-gummies-united-states-us-100-natural-benefits-pain-relief-pros-cons-scam-d6cff170cac5   https://www.facebook.com/KellyClarksonSlimFusionGummiesUSA/   https://www.mid-day.com/lifestyle/infotainment/article/vigor-vita-cbd-gummies-reviews-wellness-peak-cbd-gummies-pure-ease-cbd-gummies-23314946   https://groups.google.com/g/mozilla.dev.platform/c/hG7s3KQI2q8  
    • If anyone can help me with this . I'm creating a command to open the GUI of a book. Supposedly this should work. But it doesn't do anything. Can somebody help me? Forge 1.16.5 - Server Side Mod   dispatcher.register( Commands.literal("dummyCommand") .executes(context -> { ItemStack book = new ItemStack(Items.WRITTEN_BOOK); CompoundNBT nbt = new CompoundNBT(); ListNBT pages = new ListNBT(); pages.add(StringNBT.valueOf("{\"text\":\"Hello World\"}")); nbt.putString("author", "Steve"); nbt.putString("title", "my_book"); nbt.put("pages", pages); nbt.putByte("resolved", (byte) 1); book.setTag(nbt); context.getSource().getPlayerOrException().openItemGui(book, Hand.MAIN_HAND); return 1; }) ); I have tried with "SOpenBookWindowPacket" but it only sends the instruction to open a book that the user has in their hand. ServerPlayerEntity serverPlayerEntity = context.getSource().getPlayerOrException(); SOpenBookWindowPacket packet = new SOpenBookWindowPacket(serverPlayerEntity.getUsedItemHand()); serverPlayerEntity.connection.send(packet); The idea is that this mod is an information command for the user. You should not give a book to the user and have them read it. I have seen the Spigot documentation and have found some examples of how this is done on servers. PacketPlayOutCustomPayload packet = new PacketPlayOutCustomPayload("MC|BOpen", new PacketDataSerializer(buf)); Is there a way to do this with Forge Server Side? I've been dealing with this for 2 days and I can't find a solution. I've searched on Google and can't find anything.
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.