Jump to content

QingyangYu16

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

QingyangYu16's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. so can I use enum class to set different meta number to define different items? For blocks, it provides the function to get data from meta. For items, I do not know whether it is enough to just override gueSubItems() function. Maybe I can write down my individual class to realize?
  2. for code example, right now, what i have done is like this: public static final ItemChip ID_CHIP_1 = null; public static final ItemChip ID_CHIP_2 = null; but what i want to realize is like this public static final ItemChip ID_CHIP = null; and this line of code will give me enough items in my tab
  3. Maybe the problem is not explained clearly in the topic. For short, I am going to create a number of chips to act as keys for some machine, but those chips are different instances of one class with different nbt data to make some differences. Thus, using this approach, there need huge codes to realize registry events and I think that is kind of unpractical. Therefore, I want to know whether there is an efficient way to realize this thing because, for blocks, I only need to create a PropertyEnum variable and an Enum class to write down different block states. I really appreciate any help or hints
  4. and these are TestFurnace and EventSubscriber class TestFurnace.java EventSubscriber.java
  5. After I coded corresponding codes for a custom furnace, the program always crashes and console showed such crash report. I really appreciate it if someone can handle my confusion crash-2019-04-12_17.53.14-client.txt
×
×
  • Create New...

Important Information

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