mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-24 14:41:18 -09:00
remove un-needed stuff
This commit is contained in:
parent
cd10aa65ce
commit
5fd5eefdbd
@ -19,8 +19,6 @@ function fixupBlockIds() {
|
|||||||
}
|
}
|
||||||
function makeSteveBlock() {
|
function makeSteveBlock() {
|
||||||
var blockClass = ModAPI.reflect.getClassById("net.minecraft.block.Block");
|
var blockClass = ModAPI.reflect.getClassById("net.minecraft.block.Block");
|
||||||
var iproperty = ModAPI.reflect.getClassById("net.minecraft.block.properties.IProperty").class;
|
|
||||||
var makeBlockState = ModAPI.reflect.getClassById("net.minecraft.block.state.BlockState").constructors.find(x => x.length === 2);
|
|
||||||
var blockSuper = ModAPI.reflect.getSuper(blockClass, (x) => x.length === 2);
|
var blockSuper = ModAPI.reflect.getSuper(blockClass, (x) => x.length === 2);
|
||||||
var creativeBlockTab = ModAPI.reflect.getClassById("net.minecraft.creativetab.CreativeTabs").staticVariables.tabBlock;
|
var creativeBlockTab = ModAPI.reflect.getClassById("net.minecraft.creativetab.CreativeTabs").staticVariables.tabBlock;
|
||||||
function nmb_BlockSteve() {
|
function nmb_BlockSteve() {
|
||||||
@ -29,12 +27,6 @@ function makeSteveBlock() {
|
|||||||
this.$setCreativeTab(creativeBlockTab);
|
this.$setCreativeTab(creativeBlockTab);
|
||||||
}
|
}
|
||||||
ModAPI.reflect.prototypeStack(blockClass, nmb_BlockSteve);
|
ModAPI.reflect.prototypeStack(blockClass, nmb_BlockSteve);
|
||||||
nmb_BlockSteve.prototype.$isOpaqueCube = function () {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
nmb_BlockSteve.prototype.$createBlockState = function (t) {
|
|
||||||
return makeBlockState(this, ModAPI.array.object(iproperty, 0));
|
|
||||||
}
|
|
||||||
globalThis.nmb_BlockSteve = nmb_BlockSteve;
|
globalThis.nmb_BlockSteve = nmb_BlockSteve;
|
||||||
}
|
}
|
||||||
function registerSteveClientSide() {
|
function registerSteveClientSide() {
|
||||||
|
@ -24,8 +24,6 @@
|
|||||||
}
|
}
|
||||||
var itemClass = ModAPI.reflect.getClassById("net.minecraft.item.Item");
|
var itemClass = ModAPI.reflect.getClassById("net.minecraft.item.Item");
|
||||||
var blockClass = ModAPI.reflect.getClassById("net.minecraft.block.Block");
|
var blockClass = ModAPI.reflect.getClassById("net.minecraft.block.Block");
|
||||||
var iproperty = ModAPI.reflect.getClassById("net.minecraft.block.properties.IProperty").class;
|
|
||||||
var makeBlockState = ModAPI.reflect.getClassById("net.minecraft.block.state.BlockState").constructors.find(x => x.length === 2);
|
|
||||||
var blockSuper = ModAPI.reflect.getSuper(blockClass, (x) => x.length === 2); //Get super function from the block class with a target length of two. ($this (mandatory), material (optional))
|
var blockSuper = ModAPI.reflect.getSuper(blockClass, (x) => x.length === 2); //Get super function from the block class with a target length of two. ($this (mandatory), material (optional))
|
||||||
var creativeBlockTab = ModAPI.reflect.getClassById("net.minecraft.creativetab.CreativeTabs").staticVariables.tabBlock;
|
var creativeBlockTab = ModAPI.reflect.getClassById("net.minecraft.creativetab.CreativeTabs").staticVariables.tabBlock;
|
||||||
var breakBlockMethod = blockClass.methods.breakBlock.method;
|
var breakBlockMethod = blockClass.methods.breakBlock.method;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user