User Tools

Site Tools


tutorial:generator_types

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tutorial:generator_types [2020/09/06 13:15] – Created siglongtutorial:generator_types [2022/11/05 12:06] (current) jab125
Line 1: Line 1:
 +:!: //**This tutorial is outdated. For versions 1.18 and beyond, see [[tutorial:world_presets|Adding World Presets]].**//
 +
 ====== Adding Generator Types ====== ====== Adding Generator Types ======
 +
 +
 +
 Generator type is a wrapper around a chunk generator and shows up on the world generation menu as world type. Generator type is a wrapper around a chunk generator and shows up on the world generation menu as world type.
 If you don't know what generator type is, you may want to scroll down and see the result section of this page first. If you don't know what generator type is, you may want to scroll down and see the result section of this page first.
Line 30: Line 35:
 The argument of the constructor is a translation key. The argument of the constructor is a translation key.
 It is used when it localizes the world generation menu. It is used when it localizes the world generation menu.
 +
 +The constructor of ''GeneratorType'' is a private, so you have to use [[tutorial:accesswideners|Access Wideners]] to loosen the access.
 +Your access widener file should look like this:
 +
 +<code>
 +accessWidener v1 named
 +
 +extendable method net/minecraft/client/world/GeneratorType <init> (Ljava/lang/String;)V
 +</code>
  
 ===== Registering a Generator Type ===== ===== Registering a Generator Type =====
tutorial/generator_types.1599398146.txt.gz · Last modified: 2020/09/06 13:15 by siglong