mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-04 14:38:53 +00:00
style: reformat and .editorconfig
This commit is contained in:
8 files changed
+468
-43
No files matched your search
+435
@@ -0,0 +1,435 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = crlf
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
|
insert_final_newline = false
|
||||||
|
max_line_length = 120
|
||||||
|
tab_width = 4
|
||||||
|
ij_continuation_indent_size = 4
|
||||||
|
ij_formatter_off_tag = @formatter:off
|
||||||
|
ij_formatter_on_tag = @formatter:on
|
||||||
|
ij_formatter_tags_enabled = true
|
||||||
|
ij_smart_tabs = false
|
||||||
|
ij_visual_guides =
|
||||||
|
ij_wrap_on_typing = false
|
||||||
|
|
||||||
|
[*.java]
|
||||||
|
ij_continuation_indent_size = 4
|
||||||
|
ij_java_align_consecutive_assignments = false
|
||||||
|
ij_java_align_consecutive_variable_declarations = false
|
||||||
|
ij_java_align_group_field_declarations = false
|
||||||
|
ij_java_align_multiline_annotation_parameters = false
|
||||||
|
ij_java_align_multiline_array_initializer_expression = false
|
||||||
|
ij_java_align_multiline_assignment = false
|
||||||
|
ij_java_align_multiline_binary_operation = false
|
||||||
|
ij_java_align_multiline_chained_methods = false
|
||||||
|
ij_java_align_multiline_deconstruction_list_components = true
|
||||||
|
ij_java_align_multiline_extends_list = false
|
||||||
|
ij_java_align_multiline_for = true
|
||||||
|
ij_java_align_multiline_method_parentheses = false
|
||||||
|
ij_java_align_multiline_parameters = true
|
||||||
|
ij_java_align_multiline_parameters_in_calls = false
|
||||||
|
ij_java_align_multiline_parenthesized_expression = false
|
||||||
|
ij_java_align_multiline_records = true
|
||||||
|
ij_java_align_multiline_resources = true
|
||||||
|
ij_java_align_multiline_ternary_operation = false
|
||||||
|
ij_java_align_multiline_text_blocks = false
|
||||||
|
ij_java_align_multiline_throws_list = false
|
||||||
|
ij_java_align_subsequent_simple_methods = false
|
||||||
|
ij_java_align_throws_keyword = false
|
||||||
|
ij_java_align_types_in_multi_catch = true
|
||||||
|
ij_java_annotation_parameter_wrap = off
|
||||||
|
ij_java_array_initializer_new_line_after_left_brace = false
|
||||||
|
ij_java_array_initializer_right_brace_on_new_line = false
|
||||||
|
ij_java_array_initializer_wrap = off
|
||||||
|
ij_java_assert_statement_colon_on_next_line = false
|
||||||
|
ij_java_assert_statement_wrap = off
|
||||||
|
ij_java_assignment_wrap = off
|
||||||
|
ij_java_binary_operation_sign_on_next_line = false
|
||||||
|
ij_java_binary_operation_wrap = off
|
||||||
|
ij_java_blank_lines_after_anonymous_class_header = 0
|
||||||
|
ij_java_blank_lines_after_class_header = 0
|
||||||
|
ij_java_blank_lines_after_imports = 1
|
||||||
|
ij_java_blank_lines_after_package = 1
|
||||||
|
ij_java_blank_lines_around_class = 1
|
||||||
|
ij_java_blank_lines_around_field = 0
|
||||||
|
ij_java_blank_lines_around_field_in_interface = 0
|
||||||
|
ij_java_blank_lines_around_initializer = 1
|
||||||
|
ij_java_blank_lines_around_method = 1
|
||||||
|
ij_java_blank_lines_around_method_in_interface = 1
|
||||||
|
ij_java_blank_lines_before_class_end = 0
|
||||||
|
ij_java_blank_lines_before_imports = 1
|
||||||
|
ij_java_blank_lines_before_method_body = 0
|
||||||
|
ij_java_blank_lines_before_package = 0
|
||||||
|
ij_java_block_brace_style = end_of_line
|
||||||
|
ij_java_block_comment_add_space = false
|
||||||
|
ij_java_block_comment_at_first_column = true
|
||||||
|
ij_java_builder_methods =
|
||||||
|
ij_java_call_parameters_new_line_after_left_paren = false
|
||||||
|
ij_java_call_parameters_right_paren_on_new_line = false
|
||||||
|
ij_java_call_parameters_wrap = off
|
||||||
|
ij_java_case_statement_on_separate_line = true
|
||||||
|
ij_java_catch_on_new_line = false
|
||||||
|
ij_java_class_annotation_wrap = split_into_lines
|
||||||
|
ij_java_class_brace_style = end_of_line
|
||||||
|
ij_java_class_count_to_use_import_on_demand = 5
|
||||||
|
ij_java_class_names_in_javadoc = 1
|
||||||
|
ij_java_deconstruction_list_wrap = normal
|
||||||
|
ij_java_do_not_indent_top_level_class_members = false
|
||||||
|
ij_java_do_not_wrap_after_single_annotation = false
|
||||||
|
ij_java_do_not_wrap_after_single_annotation_in_parameter = false
|
||||||
|
ij_java_do_while_brace_force = never
|
||||||
|
ij_java_doc_add_blank_line_after_description = true
|
||||||
|
ij_java_doc_add_blank_line_after_param_comments = false
|
||||||
|
ij_java_doc_add_blank_line_after_return = false
|
||||||
|
ij_java_doc_add_p_tag_on_empty_lines = true
|
||||||
|
ij_java_doc_align_exception_comments = true
|
||||||
|
ij_java_doc_align_param_comments = true
|
||||||
|
ij_java_doc_do_not_wrap_if_one_line = false
|
||||||
|
ij_java_doc_enable_formatting = true
|
||||||
|
ij_java_doc_enable_leading_asterisks = true
|
||||||
|
ij_java_doc_indent_on_continuation = false
|
||||||
|
ij_java_doc_keep_empty_lines = true
|
||||||
|
ij_java_doc_keep_empty_parameter_tag = true
|
||||||
|
ij_java_doc_keep_empty_return_tag = true
|
||||||
|
ij_java_doc_keep_empty_throws_tag = true
|
||||||
|
ij_java_doc_keep_invalid_tags = true
|
||||||
|
ij_java_doc_param_description_on_new_line = false
|
||||||
|
ij_java_doc_preserve_line_breaks = false
|
||||||
|
ij_java_doc_use_throws_not_exception_tag = true
|
||||||
|
ij_java_else_on_new_line = false
|
||||||
|
ij_java_enum_constants_wrap = off
|
||||||
|
ij_java_extends_keyword_wrap = off
|
||||||
|
ij_java_extends_list_wrap = off
|
||||||
|
ij_java_field_annotation_wrap = split_into_lines
|
||||||
|
ij_java_field_name_prefix =
|
||||||
|
ij_java_field_name_suffix =
|
||||||
|
ij_java_finally_on_new_line = false
|
||||||
|
ij_java_for_brace_force = never
|
||||||
|
ij_java_for_statement_new_line_after_left_paren = false
|
||||||
|
ij_java_for_statement_right_paren_on_new_line = false
|
||||||
|
ij_java_for_statement_wrap = off
|
||||||
|
ij_java_generate_final_locals = false
|
||||||
|
ij_java_generate_final_parameters = false
|
||||||
|
ij_java_if_brace_force = never
|
||||||
|
ij_java_imports_layout = *, |, javax.**, java.**, |, $*
|
||||||
|
ij_java_indent_case_from_switch = true
|
||||||
|
ij_java_insert_inner_class_imports = false
|
||||||
|
ij_java_insert_override_annotation = true
|
||||||
|
ij_java_keep_blank_lines_before_right_brace = 2
|
||||||
|
ij_java_keep_blank_lines_between_package_declaration_and_header = 2
|
||||||
|
ij_java_keep_blank_lines_in_code = 2
|
||||||
|
ij_java_keep_blank_lines_in_declarations = 2
|
||||||
|
ij_java_keep_builder_methods_indents = false
|
||||||
|
ij_java_keep_control_statement_in_one_line = true
|
||||||
|
ij_java_keep_first_column_comment = true
|
||||||
|
ij_java_keep_indents_on_empty_lines = false
|
||||||
|
ij_java_keep_line_breaks = true
|
||||||
|
ij_java_keep_multiple_expressions_in_one_line = false
|
||||||
|
ij_java_keep_simple_blocks_in_one_line = false
|
||||||
|
ij_java_keep_simple_classes_in_one_line = false
|
||||||
|
ij_java_keep_simple_lambdas_in_one_line = false
|
||||||
|
ij_java_keep_simple_methods_in_one_line = false
|
||||||
|
ij_java_label_indent_absolute = false
|
||||||
|
ij_java_label_indent_size = 0
|
||||||
|
ij_java_lambda_brace_style = end_of_line
|
||||||
|
ij_java_layout_static_imports_separately = true
|
||||||
|
ij_java_line_comment_add_space = false
|
||||||
|
ij_java_line_comment_add_space_on_reformat = false
|
||||||
|
ij_java_line_comment_at_first_column = true
|
||||||
|
ij_java_local_variable_name_prefix =
|
||||||
|
ij_java_local_variable_name_suffix =
|
||||||
|
ij_java_method_annotation_wrap = split_into_lines
|
||||||
|
ij_java_method_brace_style = end_of_line
|
||||||
|
ij_java_method_call_chain_wrap = off
|
||||||
|
ij_java_method_parameters_new_line_after_left_paren = false
|
||||||
|
ij_java_method_parameters_right_paren_on_new_line = false
|
||||||
|
ij_java_method_parameters_wrap = off
|
||||||
|
ij_java_modifier_list_wrap = false
|
||||||
|
ij_java_multi_catch_types_wrap = normal
|
||||||
|
ij_java_names_count_to_use_import_on_demand = 3
|
||||||
|
ij_java_new_line_after_lparen_in_annotation = false
|
||||||
|
ij_java_new_line_after_lparen_in_deconstruction_pattern = true
|
||||||
|
ij_java_new_line_after_lparen_in_record_header = false
|
||||||
|
ij_java_packages_to_use_import_on_demand = java.awt.*, javax.swing.*
|
||||||
|
ij_java_parameter_annotation_wrap = off
|
||||||
|
ij_java_parameter_name_prefix =
|
||||||
|
ij_java_parameter_name_suffix =
|
||||||
|
ij_java_parentheses_expression_new_line_after_left_paren = false
|
||||||
|
ij_java_parentheses_expression_right_paren_on_new_line = false
|
||||||
|
ij_java_place_assignment_sign_on_next_line = false
|
||||||
|
ij_java_prefer_longer_names = true
|
||||||
|
ij_java_prefer_parameters_wrap = false
|
||||||
|
ij_java_record_components_wrap = normal
|
||||||
|
ij_java_repeat_annotations =
|
||||||
|
ij_java_repeat_synchronized = true
|
||||||
|
ij_java_replace_instanceof_and_cast = false
|
||||||
|
ij_java_replace_null_check = true
|
||||||
|
ij_java_replace_sum_lambda_with_method_ref = true
|
||||||
|
ij_java_resource_list_new_line_after_left_paren = false
|
||||||
|
ij_java_resource_list_right_paren_on_new_line = false
|
||||||
|
ij_java_resource_list_wrap = off
|
||||||
|
ij_java_rparen_on_new_line_in_annotation = false
|
||||||
|
ij_java_rparen_on_new_line_in_deconstruction_pattern = true
|
||||||
|
ij_java_rparen_on_new_line_in_record_header = false
|
||||||
|
ij_java_space_after_closing_angle_bracket_in_type_argument = false
|
||||||
|
ij_java_space_after_colon = true
|
||||||
|
ij_java_space_after_comma = true
|
||||||
|
ij_java_space_after_comma_in_type_arguments = true
|
||||||
|
ij_java_space_after_for_semicolon = true
|
||||||
|
ij_java_space_after_quest = true
|
||||||
|
ij_java_space_after_type_cast = true
|
||||||
|
ij_java_space_before_annotation_array_initializer_left_brace = false
|
||||||
|
ij_java_space_before_annotation_parameter_list = false
|
||||||
|
ij_java_space_before_array_initializer_left_brace = false
|
||||||
|
ij_java_space_before_catch_keyword = true
|
||||||
|
ij_java_space_before_catch_left_brace = true
|
||||||
|
ij_java_space_before_catch_parentheses = true
|
||||||
|
ij_java_space_before_class_left_brace = true
|
||||||
|
ij_java_space_before_colon = true
|
||||||
|
ij_java_space_before_colon_in_foreach = true
|
||||||
|
ij_java_space_before_comma = false
|
||||||
|
ij_java_space_before_deconstruction_list = false
|
||||||
|
ij_java_space_before_do_left_brace = true
|
||||||
|
ij_java_space_before_else_keyword = true
|
||||||
|
ij_java_space_before_else_left_brace = true
|
||||||
|
ij_java_space_before_finally_keyword = true
|
||||||
|
ij_java_space_before_finally_left_brace = true
|
||||||
|
ij_java_space_before_for_left_brace = true
|
||||||
|
ij_java_space_before_for_parentheses = true
|
||||||
|
ij_java_space_before_for_semicolon = false
|
||||||
|
ij_java_space_before_if_left_brace = true
|
||||||
|
ij_java_space_before_if_parentheses = true
|
||||||
|
ij_java_space_before_method_call_parentheses = false
|
||||||
|
ij_java_space_before_method_left_brace = true
|
||||||
|
ij_java_space_before_method_parentheses = false
|
||||||
|
ij_java_space_before_opening_angle_bracket_in_type_parameter = false
|
||||||
|
ij_java_space_before_quest = true
|
||||||
|
ij_java_space_before_switch_left_brace = true
|
||||||
|
ij_java_space_before_switch_parentheses = true
|
||||||
|
ij_java_space_before_synchronized_left_brace = true
|
||||||
|
ij_java_space_before_synchronized_parentheses = true
|
||||||
|
ij_java_space_before_try_left_brace = true
|
||||||
|
ij_java_space_before_try_parentheses = true
|
||||||
|
ij_java_space_before_type_parameter_list = false
|
||||||
|
ij_java_space_before_while_keyword = true
|
||||||
|
ij_java_space_before_while_left_brace = true
|
||||||
|
ij_java_space_before_while_parentheses = true
|
||||||
|
ij_java_space_inside_one_line_enum_braces = false
|
||||||
|
ij_java_space_within_empty_array_initializer_braces = false
|
||||||
|
ij_java_space_within_empty_method_call_parentheses = false
|
||||||
|
ij_java_space_within_empty_method_parentheses = false
|
||||||
|
ij_java_spaces_around_additive_operators = true
|
||||||
|
ij_java_spaces_around_annotation_eq = true
|
||||||
|
ij_java_spaces_around_assignment_operators = true
|
||||||
|
ij_java_spaces_around_bitwise_operators = true
|
||||||
|
ij_java_spaces_around_equality_operators = true
|
||||||
|
ij_java_spaces_around_lambda_arrow = true
|
||||||
|
ij_java_spaces_around_logical_operators = true
|
||||||
|
ij_java_spaces_around_method_ref_dbl_colon = false
|
||||||
|
ij_java_spaces_around_multiplicative_operators = true
|
||||||
|
ij_java_spaces_around_relational_operators = true
|
||||||
|
ij_java_spaces_around_shift_operators = true
|
||||||
|
ij_java_spaces_around_type_bounds_in_type_parameters = true
|
||||||
|
ij_java_spaces_around_unary_operator = false
|
||||||
|
ij_java_spaces_within_angle_brackets = false
|
||||||
|
ij_java_spaces_within_annotation_parentheses = false
|
||||||
|
ij_java_spaces_within_array_initializer_braces = false
|
||||||
|
ij_java_spaces_within_braces = false
|
||||||
|
ij_java_spaces_within_brackets = false
|
||||||
|
ij_java_spaces_within_cast_parentheses = false
|
||||||
|
ij_java_spaces_within_catch_parentheses = false
|
||||||
|
ij_java_spaces_within_deconstruction_list = false
|
||||||
|
ij_java_spaces_within_for_parentheses = false
|
||||||
|
ij_java_spaces_within_if_parentheses = false
|
||||||
|
ij_java_spaces_within_method_call_parentheses = false
|
||||||
|
ij_java_spaces_within_method_parentheses = false
|
||||||
|
ij_java_spaces_within_parentheses = false
|
||||||
|
ij_java_spaces_within_record_header = false
|
||||||
|
ij_java_spaces_within_switch_parentheses = false
|
||||||
|
ij_java_spaces_within_synchronized_parentheses = false
|
||||||
|
ij_java_spaces_within_try_parentheses = false
|
||||||
|
ij_java_spaces_within_while_parentheses = false
|
||||||
|
ij_java_special_else_if_treatment = true
|
||||||
|
ij_java_static_field_name_prefix =
|
||||||
|
ij_java_static_field_name_suffix =
|
||||||
|
ij_java_subclass_name_prefix =
|
||||||
|
ij_java_subclass_name_suffix = Impl
|
||||||
|
ij_java_ternary_operation_signs_on_next_line = false
|
||||||
|
ij_java_ternary_operation_wrap = off
|
||||||
|
ij_java_test_name_prefix =
|
||||||
|
ij_java_test_name_suffix = Test
|
||||||
|
ij_java_throws_keyword_wrap = off
|
||||||
|
ij_java_throws_list_wrap = off
|
||||||
|
ij_java_use_external_annotations = false
|
||||||
|
ij_java_use_fq_class_names = false
|
||||||
|
ij_java_use_relative_indents = false
|
||||||
|
ij_java_use_single_class_imports = true
|
||||||
|
ij_java_variable_annotation_wrap = off
|
||||||
|
ij_java_visibility = public
|
||||||
|
ij_java_while_brace_force = never
|
||||||
|
ij_java_while_on_new_line = false
|
||||||
|
ij_java_wrap_comments = false
|
||||||
|
ij_java_wrap_first_method_in_call_chain = false
|
||||||
|
ij_java_wrap_long_lines = false
|
||||||
|
|
||||||
|
[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.jspx,*.pom,*.rng,*.tagx,*.tld,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul}]
|
||||||
|
ij_continuation_indent_size = 4
|
||||||
|
ij_xml_align_attributes = true
|
||||||
|
ij_xml_align_text = false
|
||||||
|
ij_xml_attribute_wrap = normal
|
||||||
|
ij_xml_block_comment_add_space = false
|
||||||
|
ij_xml_block_comment_at_first_column = true
|
||||||
|
ij_xml_keep_blank_lines = 2
|
||||||
|
ij_xml_keep_indents_on_empty_lines = false
|
||||||
|
ij_xml_keep_line_breaks = true
|
||||||
|
ij_xml_keep_line_breaks_in_text = true
|
||||||
|
ij_xml_keep_whitespaces = false
|
||||||
|
ij_xml_keep_whitespaces_around_cdata = preserve
|
||||||
|
ij_xml_keep_whitespaces_inside_cdata = false
|
||||||
|
ij_xml_line_comment_at_first_column = true
|
||||||
|
ij_xml_space_after_tag_name = false
|
||||||
|
ij_xml_space_around_equals_in_attribute = false
|
||||||
|
ij_xml_space_inside_empty_tag = false
|
||||||
|
ij_xml_text_wrap = normal
|
||||||
|
|
||||||
|
[{*.gradle.kts,*.kt,*.kts,*.main.kts,*.space.kts}]
|
||||||
|
ij_continuation_indent_size = 4
|
||||||
|
ij_kotlin_align_in_columns_case_branch = false
|
||||||
|
ij_kotlin_align_multiline_binary_operation = false
|
||||||
|
ij_kotlin_align_multiline_extends_list = false
|
||||||
|
ij_kotlin_align_multiline_method_parentheses = false
|
||||||
|
ij_kotlin_align_multiline_parameters = true
|
||||||
|
ij_kotlin_align_multiline_parameters_in_calls = false
|
||||||
|
ij_kotlin_allow_trailing_comma = false
|
||||||
|
ij_kotlin_allow_trailing_comma_on_call_site = false
|
||||||
|
ij_kotlin_assignment_wrap = off
|
||||||
|
ij_kotlin_blank_lines_after_class_header = 0
|
||||||
|
ij_kotlin_blank_lines_around_block_when_branches = 0
|
||||||
|
ij_kotlin_blank_lines_before_declaration_with_comment_or_annotation_on_separate_line = 1
|
||||||
|
ij_kotlin_block_comment_add_space = false
|
||||||
|
ij_kotlin_block_comment_at_first_column = true
|
||||||
|
ij_kotlin_call_parameters_new_line_after_left_paren = false
|
||||||
|
ij_kotlin_call_parameters_right_paren_on_new_line = false
|
||||||
|
ij_kotlin_call_parameters_wrap = off
|
||||||
|
ij_kotlin_catch_on_new_line = false
|
||||||
|
ij_kotlin_class_annotation_wrap = split_into_lines
|
||||||
|
ij_kotlin_continuation_indent_for_chained_calls = true
|
||||||
|
ij_kotlin_continuation_indent_for_expression_bodies = true
|
||||||
|
ij_kotlin_continuation_indent_in_argument_lists = true
|
||||||
|
ij_kotlin_continuation_indent_in_elvis = true
|
||||||
|
ij_kotlin_continuation_indent_in_if_conditions = true
|
||||||
|
ij_kotlin_continuation_indent_in_parameter_lists = true
|
||||||
|
ij_kotlin_continuation_indent_in_supertype_lists = true
|
||||||
|
ij_kotlin_else_on_new_line = false
|
||||||
|
ij_kotlin_enum_constants_wrap = off
|
||||||
|
ij_kotlin_extends_list_wrap = off
|
||||||
|
ij_kotlin_field_annotation_wrap = split_into_lines
|
||||||
|
ij_kotlin_finally_on_new_line = false
|
||||||
|
ij_kotlin_if_rparen_on_new_line = false
|
||||||
|
ij_kotlin_import_nested_classes = false
|
||||||
|
ij_kotlin_imports_layout = *, java.**, javax.**, kotlin.**, ^
|
||||||
|
ij_kotlin_insert_whitespaces_in_simple_one_line_method = true
|
||||||
|
ij_kotlin_keep_blank_lines_before_right_brace = 2
|
||||||
|
ij_kotlin_keep_blank_lines_in_code = 2
|
||||||
|
ij_kotlin_keep_blank_lines_in_declarations = 2
|
||||||
|
ij_kotlin_keep_first_column_comment = true
|
||||||
|
ij_kotlin_keep_indents_on_empty_lines = false
|
||||||
|
ij_kotlin_keep_line_breaks = true
|
||||||
|
ij_kotlin_lbrace_on_next_line = false
|
||||||
|
ij_kotlin_line_break_after_multiline_when_entry = true
|
||||||
|
ij_kotlin_line_comment_add_space = false
|
||||||
|
ij_kotlin_line_comment_add_space_on_reformat = false
|
||||||
|
ij_kotlin_line_comment_at_first_column = true
|
||||||
|
ij_kotlin_method_annotation_wrap = split_into_lines
|
||||||
|
ij_kotlin_method_call_chain_wrap = off
|
||||||
|
ij_kotlin_method_parameters_new_line_after_left_paren = false
|
||||||
|
ij_kotlin_method_parameters_right_paren_on_new_line = false
|
||||||
|
ij_kotlin_method_parameters_wrap = off
|
||||||
|
ij_kotlin_name_count_to_use_star_import = 5
|
||||||
|
ij_kotlin_name_count_to_use_star_import_for_members = 3
|
||||||
|
ij_kotlin_packages_to_use_import_on_demand = java.util.*, kotlinx.android.synthetic.**, io.ktor.**
|
||||||
|
ij_kotlin_parameter_annotation_wrap = off
|
||||||
|
ij_kotlin_space_after_comma = true
|
||||||
|
ij_kotlin_space_after_extend_colon = true
|
||||||
|
ij_kotlin_space_after_type_colon = true
|
||||||
|
ij_kotlin_space_before_catch_parentheses = true
|
||||||
|
ij_kotlin_space_before_comma = false
|
||||||
|
ij_kotlin_space_before_extend_colon = true
|
||||||
|
ij_kotlin_space_before_for_parentheses = true
|
||||||
|
ij_kotlin_space_before_if_parentheses = true
|
||||||
|
ij_kotlin_space_before_lambda_arrow = true
|
||||||
|
ij_kotlin_space_before_type_colon = false
|
||||||
|
ij_kotlin_space_before_when_parentheses = true
|
||||||
|
ij_kotlin_space_before_while_parentheses = true
|
||||||
|
ij_kotlin_spaces_around_additive_operators = true
|
||||||
|
ij_kotlin_spaces_around_assignment_operators = true
|
||||||
|
ij_kotlin_spaces_around_equality_operators = true
|
||||||
|
ij_kotlin_spaces_around_function_type_arrow = true
|
||||||
|
ij_kotlin_spaces_around_logical_operators = true
|
||||||
|
ij_kotlin_spaces_around_multiplicative_operators = true
|
||||||
|
ij_kotlin_spaces_around_range = false
|
||||||
|
ij_kotlin_spaces_around_relational_operators = true
|
||||||
|
ij_kotlin_spaces_around_unary_operator = false
|
||||||
|
ij_kotlin_spaces_around_when_arrow = true
|
||||||
|
ij_kotlin_variable_annotation_wrap = off
|
||||||
|
ij_kotlin_while_on_new_line = false
|
||||||
|
ij_kotlin_wrap_elvis_expressions = 1
|
||||||
|
ij_kotlin_wrap_expression_body_functions = 0
|
||||||
|
ij_kotlin_wrap_first_method_in_call_chain = false
|
||||||
|
|
||||||
|
[{*.har,*.json,*.png.mcmeta,mcmod.info,pack.mcmeta}]
|
||||||
|
indent_size = 2
|
||||||
|
ij_continuation_indent_size = 4
|
||||||
|
ij_json_array_wrapping = split_into_lines
|
||||||
|
ij_json_keep_blank_lines_in_code = 0
|
||||||
|
ij_json_keep_indents_on_empty_lines = false
|
||||||
|
ij_json_keep_line_breaks = true
|
||||||
|
ij_json_keep_trailing_comma = false
|
||||||
|
ij_json_object_wrapping = split_into_lines
|
||||||
|
ij_json_property_alignment = do_not_align
|
||||||
|
ij_json_space_after_colon = true
|
||||||
|
ij_json_space_after_comma = true
|
||||||
|
ij_json_space_before_colon = false
|
||||||
|
ij_json_space_before_comma = false
|
||||||
|
ij_json_spaces_within_braces = false
|
||||||
|
ij_json_spaces_within_brackets = false
|
||||||
|
ij_json_wrap_long_lines = false
|
||||||
|
|
||||||
|
[{*.markdown,*.md,*.md }]
|
||||||
|
ij_markdown_force_one_space_after_blockquote_symbol = true
|
||||||
|
ij_markdown_force_one_space_after_header_symbol = true
|
||||||
|
ij_markdown_force_one_space_after_list_bullet = true
|
||||||
|
ij_markdown_force_one_space_between_words = true
|
||||||
|
ij_markdown_format_tables = true
|
||||||
|
ij_markdown_insert_quote_arrows_on_wrap = true
|
||||||
|
ij_markdown_keep_indents_on_empty_lines = false
|
||||||
|
ij_markdown_keep_line_breaks_inside_text_blocks = true
|
||||||
|
ij_markdown_max_lines_around_block_elements = 1
|
||||||
|
ij_markdown_max_lines_around_header = 1
|
||||||
|
ij_markdown_max_lines_between_paragraphs = 1
|
||||||
|
ij_markdown_min_lines_around_block_elements = 1
|
||||||
|
ij_markdown_min_lines_around_header = 1
|
||||||
|
ij_markdown_min_lines_between_paragraphs = 1
|
||||||
|
ij_markdown_wrap_text_if_long = true
|
||||||
|
ij_markdown_wrap_text_inside_blockquotes = true
|
||||||
|
|
||||||
|
[{*.toml,Cargo.lock,Cargo.toml.orig,Gopkg.lock,Pipfile,poetry.lock}]
|
||||||
|
ij_continuation_indent_size = 4
|
||||||
|
ij_toml_keep_indents_on_empty_lines = false
|
||||||
|
|
||||||
|
[{*.yaml,*.yml}]
|
||||||
|
indent_size = 2
|
||||||
|
ij_yaml_align_values_properties = do_not_align
|
||||||
|
ij_yaml_autoinsert_sequence_marker = true
|
||||||
|
ij_yaml_block_mapping_on_new_line = false
|
||||||
|
ij_yaml_indent_sequence_value = true
|
||||||
|
ij_yaml_keep_indents_on_empty_lines = false
|
||||||
|
ij_yaml_keep_line_breaks = true
|
||||||
|
ij_yaml_sequence_on_new_line = false
|
||||||
|
ij_yaml_space_before_colon = false
|
||||||
|
ij_yaml_spaces_within_braces = true
|
||||||
|
ij_yaml_spaces_within_brackets = true
|
||||||
@@ -28,6 +28,7 @@ public class GunnerEquipment implements Cloneable {
|
|||||||
public GunnerEquipment clone() throws CloneNotSupportedException {
|
public GunnerEquipment clone() throws CloneNotSupportedException {
|
||||||
return (GunnerEquipment) super.clone();
|
return (GunnerEquipment) super.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean Enabled = true;
|
public Boolean Enabled = true;
|
||||||
public UUID EntityId;
|
public UUID EntityId;
|
||||||
public Entity Entity;
|
public Entity Entity;
|
||||||
@@ -97,8 +98,7 @@ public class GunnerEquipment implements Cloneable {
|
|||||||
((Player) player).getInventory().removeItem(fuelItem);
|
((Player) player).getInventory().removeItem(fuelItem);
|
||||||
((Player) player).sendMessage("§eLoaded " + this.AmmoHolder.LoadedFuel + "/" + this.MaxFuel);
|
((Player) player).sendMessage("§eLoaded " + this.AmmoHolder.LoadedFuel + "/" + this.MaxFuel);
|
||||||
return true;
|
return true;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -138,8 +138,7 @@ public class GunnerEquipment implements Cloneable {
|
|||||||
loc.add(direction);
|
loc.add(direction);
|
||||||
if (this.YOffset > 0) {
|
if (this.YOffset > 0) {
|
||||||
loc.setY(loc.getY() + this.YOffset);
|
loc.setY(loc.getY() + this.YOffset);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
loc.setY(loc.getY() - this.YOffset);
|
loc.setY(loc.getY() - this.YOffset);
|
||||||
}
|
}
|
||||||
loc.setPitch(loc.getPitch() + this.PitchOffset);
|
loc.setPitch(loc.getPitch() + this.PitchOffset);
|
||||||
@@ -221,8 +220,7 @@ public class GunnerEquipment implements Cloneable {
|
|||||||
this.NextModelNumber = 0;
|
this.NextModelNumber = 0;
|
||||||
SiegeEngines.UpdateEntityIdModel(this.Entity, this.ReadyModelNumber, this.WorldName);
|
SiegeEngines.UpdateEntityIdModel(this.Entity, this.ReadyModelNumber, this.WorldName);
|
||||||
this.TaskNumber = 0;
|
this.TaskNumber = 0;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
//firing stages
|
//firing stages
|
||||||
if (this.NextModelNumber - 1 <= this.FiringModelNumbers.size() && this.NextModelNumber - 1 >= 0) {
|
if (this.NextModelNumber - 1 <= this.FiringModelNumbers.size() && this.NextModelNumber - 1 >= 0) {
|
||||||
int modelData = this.FiringModelNumbers.get(this.NextModelNumber - 1);
|
int modelData = this.FiringModelNumbers.get(this.NextModelNumber - 1);
|
||||||
@@ -237,8 +235,7 @@ public class GunnerEquipment implements Cloneable {
|
|||||||
}
|
}
|
||||||
}, 0, this.MillisecondsBetweenReloadingStages);
|
}, 0, this.MillisecondsBetweenReloadingStages);
|
||||||
|
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
//firing stages
|
//firing stages
|
||||||
if (this.NextModelNumber < this.FiringModelNumbers.size()) {
|
if (this.NextModelNumber < this.FiringModelNumbers.size()) {
|
||||||
|
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ public class SiegeEngines extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static FixedMetadataValue addMetaDataValue(Object value) {
|
public static FixedMetadataValue addMetaDataValue(Object value) {
|
||||||
return new FixedMetadataValue(Bukkit.getServer().getPluginManager().getPlugin("SiegeEngines"), value);
|
return new FixedMetadataValue(Bukkit.getServer().getPluginManager().getPlugin("SiegeEngines"), value);
|
||||||
}
|
}
|
||||||
@@ -159,8 +160,7 @@ public class SiegeEngines extends JavaPlugin {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
sender.sendMessage("§eIncorrect usage, /SiegeEngines get, /SiegeEngines reload");
|
sender.sendMessage("§eIncorrect usage, /SiegeEngines get, /SiegeEngines reload");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -419,8 +419,7 @@ public class SiegeEngines extends JavaPlugin {
|
|||||||
List<Entity> entities = TrackedStands.get(player.getUniqueId());
|
List<Entity> entities = TrackedStands.get(player.getUniqueId());
|
||||||
entities.add(entity2);
|
entities.add(entity2);
|
||||||
TrackedStands.put(player.getUniqueId(), entities);
|
TrackedStands.put(player.getUniqueId(), entities);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
List<Entity> newList = new ArrayList<Entity>();
|
List<Entity> newList = new ArrayList<Entity>();
|
||||||
newList.add(entity2);
|
newList.add(entity2);
|
||||||
TrackedStands.put(player.getUniqueId(), newList);
|
TrackedStands.put(player.getUniqueId(), newList);
|
||||||
@@ -430,8 +429,7 @@ public class SiegeEngines extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void UpdateEntityIdModel(Entity ent, int modelNumber, String WorldName) {
|
public static void UpdateEntityIdModel(Entity ent, int modelNumber, String WorldName) {
|
||||||
if (ent instanceof LivingEntity)
|
if (ent instanceof LivingEntity) {
|
||||||
{
|
|
||||||
LivingEntity liv = (LivingEntity) ent;
|
LivingEntity liv = (LivingEntity) ent;
|
||||||
ItemStack Helmet = liv.getEquipment().getHelmet();
|
ItemStack Helmet = liv.getEquipment().getHelmet();
|
||||||
if (Helmet != null) {
|
if (Helmet != null) {
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ClickHandler implements Listener {
|
|||||||
public float MinDelay = 5;
|
public float MinDelay = 5;
|
||||||
|
|
||||||
public static HashMap<UUID, ExplosiveProjectile> projectiles = new HashMap<UUID, ExplosiveProjectile>();
|
public static HashMap<UUID, ExplosiveProjectile> projectiles = new HashMap<UUID, ExplosiveProjectile>();
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onExplode(EntityExplodeEvent e) {
|
public void onExplode(EntityExplodeEvent e) {
|
||||||
for (Entity entity : e.getEntity().getNearbyEntities(e.getYield() + 1, e.getYield() + 1, e.getYield() + 1)) {
|
for (Entity entity : e.getEntity().getNearbyEntities(e.getYield() + 1, e.getYield() + 1, e.getYield() + 1)) {
|
||||||
@@ -116,8 +117,7 @@ public class ClickHandler implements Listener {
|
|||||||
replace.setType(proj.BlockToPlace);
|
replace.setType(proj.BlockToPlace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
TNTPrimed tntEnt = (TNTPrimed) tnt;
|
TNTPrimed tntEnt = (TNTPrimed) tnt;
|
||||||
tntEnt.setYield(proj.ExplodePower);
|
tntEnt.setYield(proj.ExplodePower);
|
||||||
tntEnt.setFuseTicks(0);
|
tntEnt.setFuseTicks(0);
|
||||||
@@ -142,8 +142,7 @@ public class ClickHandler implements Listener {
|
|||||||
return sphere;
|
return sphere;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Block getRandomElement(List<Block> list)
|
public Block getRandomElement(List<Block> list) {
|
||||||
{
|
|
||||||
Random rand = new Random();
|
Random rand = new Random();
|
||||||
return list.get(rand.nextInt(list.size()));
|
return list.get(rand.nextInt(list.size()));
|
||||||
}
|
}
|
||||||
@@ -213,15 +212,16 @@ public class ClickHandler implements Listener {
|
|||||||
siege.Fire(player, 15, 1);
|
siege.Fire(player, 15, 1);
|
||||||
}
|
}
|
||||||
counter++;
|
counter++;
|
||||||
|
} else {
|
||||||
|
if (player instanceof Player) {
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
if (player instanceof Player) {}
|
|
||||||
//player.sendMessage("§eAmmunition Not Loaded");
|
//player.sendMessage("§eAmmunition Not Loaded");
|
||||||
}
|
}
|
||||||
// player.sendMessage(String.format("§e" +actualDelay));
|
// player.sendMessage(String.format("§e" +actualDelay));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ItemStack[] updateContents(Inventory inv, ItemStack m, int toRemove) {
|
public static ItemStack[] updateContents(Inventory inv, ItemStack m, int toRemove) {
|
||||||
ItemStack[] contents = inv.getStorageContents();
|
ItemStack[] contents = inv.getStorageContents();
|
||||||
for (int i = 0; i < contents.length; i++) {
|
for (int i = 0; i < contents.length; i++) {
|
||||||
@@ -373,7 +373,6 @@ public class ClickHandler implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static void TakeControl(Entity player, Entity entity) {
|
public static void TakeControl(Entity player, Entity entity) {
|
||||||
LivingEntity living = (LivingEntity) entity;
|
LivingEntity living = (LivingEntity) entity;
|
||||||
if (SiegeEngines.TrackedStands.containsKey(player.getUniqueId())) {
|
if (SiegeEngines.TrackedStands.containsKey(player.getUniqueId())) {
|
||||||
@@ -401,8 +400,7 @@ public class ClickHandler implements Listener {
|
|||||||
if (equip == null || !equip.Enabled) {
|
if (equip == null || !equip.Enabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
equip = SiegeEngines.CreateClone(living.getEquipment().getHelmet().getItemMeta().getCustomModelData());
|
equip = SiegeEngines.CreateClone(living.getEquipment().getHelmet().getItemMeta().getCustomModelData());
|
||||||
if (equip == null || !equip.Enabled) {
|
if (equip == null || !equip.Enabled) {
|
||||||
return;
|
return;
|
||||||
@@ -420,8 +418,7 @@ public class ClickHandler implements Listener {
|
|||||||
List<Entity> entities = SiegeEngines.TrackedStands.get(player.getUniqueId());
|
List<Entity> entities = SiegeEngines.TrackedStands.get(player.getUniqueId());
|
||||||
entities.add(entity);
|
entities.add(entity);
|
||||||
SiegeEngines.TrackedStands.put(player.getUniqueId(), entities);
|
SiegeEngines.TrackedStands.put(player.getUniqueId(), entities);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
List<Entity> newList = new ArrayList<Entity>();
|
List<Entity> newList = new ArrayList<Entity>();
|
||||||
newList.add(entity);
|
newList.add(entity);
|
||||||
SiegeEngines.TrackedStands.put(player.getUniqueId(), newList);
|
SiegeEngines.TrackedStands.put(player.getUniqueId(), newList);
|
||||||
@@ -509,6 +506,7 @@ public class ClickHandler implements Listener {
|
|||||||
|
|
||||||
ent.teleport(loc);
|
ent.teleport(loc);
|
||||||
}
|
}
|
||||||
|
|
||||||
NamespacedKey key = new NamespacedKey(SiegeEngines.plugin, "cannons");
|
NamespacedKey key = new NamespacedKey(SiegeEngines.plugin, "cannons");
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
@@ -522,8 +520,7 @@ public class ClickHandler implements Listener {
|
|||||||
}
|
}
|
||||||
if (SiegeEngines.equipment.containsKey(event.getEntity().getUniqueId())) {
|
if (SiegeEngines.equipment.containsKey(event.getEntity().getUniqueId())) {
|
||||||
removeStands = true;
|
removeStands = true;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
for (ItemStack i : items) {
|
for (ItemStack i : items) {
|
||||||
if (i.getType() == Material.CARVED_PUMPKIN && i.hasItemMeta() && i.getItemMeta().hasCustomModelData()) {
|
if (i.getType() == Material.CARVED_PUMPKIN && i.hasItemMeta() && i.getItemMeta().hasCustomModelData()) {
|
||||||
if (SiegeEngines.DefinedEquipment.containsKey(i.getItemMeta().getCustomModelData())) {
|
if (SiegeEngines.DefinedEquipment.containsKey(i.getItemMeta().getCustomModelData())) {
|
||||||
@@ -702,8 +699,7 @@ public class ClickHandler implements Listener {
|
|||||||
if (itemInHand.getType() == Material.CLOCK) {
|
if (itemInHand.getType() == Material.CLOCK) {
|
||||||
if (player.isSneaking()) {
|
if (player.isSneaking()) {
|
||||||
DoAimDown(entity, 1, player);
|
DoAimDown(entity, 1, player);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
DoAimUp(entity, 1, player);
|
DoAimUp(entity, 1, player);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@@ -717,8 +713,7 @@ public class ClickHandler implements Listener {
|
|||||||
if (stand.isInvisible()) {
|
if (stand.isInvisible()) {
|
||||||
stand.setInvisible(false);
|
stand.setInvisible(false);
|
||||||
player.sendMessage("§eEquipment is now breakable");
|
player.sendMessage("§eEquipment is now breakable");
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
if (equipment.AllowInvisibleStand) {
|
if (equipment.AllowInvisibleStand) {
|
||||||
stand.setInvisible(true);
|
stand.setInvisible(true);
|
||||||
player.sendMessage("§eEquipment is no longer breakable");
|
player.sendMessage("§eEquipment is no longer breakable");
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ public class EntityProjectile implements GunnersProjectile{
|
|||||||
public float Inaccuracy = 0.2f;
|
public float Inaccuracy = 0.2f;
|
||||||
public Particle ParticleType = Particle.EXPLOSION_LARGE;
|
public Particle ParticleType = Particle.EXPLOSION_LARGE;
|
||||||
public Sound SoundType = Sound.ENTITY_GENERIC_EXPLODE;
|
public Sound SoundType = Sound.ENTITY_GENERIC_EXPLODE;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void Shoot(Entity player, Entity entity, Location FireLocation, Float velocity) {
|
public void Shoot(Entity player, Entity entity, Location FireLocation, Float velocity) {
|
||||||
PlaySound = true;
|
PlaySound = true;
|
||||||
@@ -34,8 +35,7 @@ public class EntityProjectile implements GunnersProjectile{
|
|||||||
|
|
||||||
CreateEntity(entity, FireLocation, velocity, player);
|
CreateEntity(entity, FireLocation, velocity, player);
|
||||||
}, (long) baseDelay);
|
}, (long) baseDelay);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
|
|
||||||
CreateEntity(entity, FireLocation, velocity, player);
|
CreateEntity(entity, FireLocation, velocity, player);
|
||||||
}
|
}
|
||||||
@@ -43,7 +43,9 @@ public class EntityProjectile implements GunnersProjectile{
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean PlaySound = true;
|
private boolean PlaySound = true;
|
||||||
|
|
||||||
private void CreateEntity(Entity entity, Location loc, Float velocity, Entity player) {
|
private void CreateEntity(Entity entity, Location loc, Float velocity, Entity player) {
|
||||||
World world = entity.getLocation().getWorld();
|
World world = entity.getLocation().getWorld();
|
||||||
LivingEntity living = (LivingEntity) entity;
|
LivingEntity living = (LivingEntity) entity;
|
||||||
@@ -52,8 +54,7 @@ public class EntityProjectile implements GunnersProjectile{
|
|||||||
if (Inaccuracy != 0f) {
|
if (Inaccuracy != 0f) {
|
||||||
arrow.setVelocity(loc.getDirection().multiply(velocity).add(Randomise())
|
arrow.setVelocity(loc.getDirection().multiply(velocity).add(Randomise())
|
||||||
.subtract(Randomise()));
|
.subtract(Randomise()));
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
arrow.setVelocity(loc.getDirection().multiply(velocity));
|
arrow.setVelocity(loc.getDirection().multiply(velocity));
|
||||||
}
|
}
|
||||||
arrow.setMetadata("isEntityProj", SiegeEngines.addMetaDataValue("true"));
|
arrow.setMetadata("isEntityProj", SiegeEngines.addMetaDataValue("true"));
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public class ExplosiveProjectile implements GunnersProjectile {
|
|||||||
public Sound SoundType = Sound.ENTITY_GENERIC_EXPLODE;
|
public Sound SoundType = Sound.ENTITY_GENERIC_EXPLODE;
|
||||||
private boolean PlaySound = true;
|
private boolean PlaySound = true;
|
||||||
public Boolean AlertOnLanding = false;
|
public Boolean AlertOnLanding = false;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void Shoot(Entity player, Entity entity, Location loc, Float velocity) {
|
public void Shoot(Entity player, Entity entity, Location loc, Float velocity) {
|
||||||
PlaySound = true;
|
PlaySound = true;
|
||||||
@@ -41,8 +42,7 @@ public class ExplosiveProjectile implements GunnersProjectile {
|
|||||||
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(SiegeEngines.plugin, () -> {
|
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(SiegeEngines.plugin, () -> {
|
||||||
CreateEntity(entity, loc, velocity, player);
|
CreateEntity(entity, loc, velocity, player);
|
||||||
}, (long) baseDelay);
|
}, (long) baseDelay);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
CreateEntity(entity, loc, velocity, player);
|
CreateEntity(entity, loc, velocity, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,8 +62,7 @@ public class ExplosiveProjectile implements GunnersProjectile {
|
|||||||
if (Inaccuracy != 0f) {
|
if (Inaccuracy != 0f) {
|
||||||
tnt.setVelocity(loc.getDirection().multiply(velocity).add(Randomise())
|
tnt.setVelocity(loc.getDirection().multiply(velocity).add(Randomise())
|
||||||
.subtract(Randomise()));
|
.subtract(Randomise()));
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
tnt.setVelocity(loc.getDirection().multiply(velocity));
|
tnt.setVelocity(loc.getDirection().multiply(velocity));
|
||||||
}
|
}
|
||||||
tnt.setMetadata("isExplosiveProj", SiegeEngines.addMetaDataValue("true"));
|
tnt.setMetadata("isExplosiveProj", SiegeEngines.addMetaDataValue("true"));
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import org.bukkit.entity.Entity;
|
|||||||
|
|
||||||
public interface GunnersProjectile {
|
public interface GunnersProjectile {
|
||||||
public void Shoot(Entity player, Entity entity, Location fireLocation, Float velocity);
|
public void Shoot(Entity player, Entity entity, Location fireLocation, Float velocity);
|
||||||
|
|
||||||
public String ProjectileType = "Default";
|
public String ProjectileType = "Default";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,13 +37,13 @@ public class PotionProjectile implements GunnersProjectile {
|
|||||||
|
|
||||||
CreateEntity(entity, loc, velocity);
|
CreateEntity(entity, loc, velocity);
|
||||||
}, (long) baseDelay);
|
}, (long) baseDelay);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
CreateEntity(entity, loc, velocity);
|
CreateEntity(entity, loc, velocity);
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CreateEntity(Entity entity, Location loc, Float velocity) {
|
private void CreateEntity(Entity entity, Location loc, Float velocity) {
|
||||||
World world = entity.getLocation().getWorld();
|
World world = entity.getLocation().getWorld();
|
||||||
LivingEntity living = (LivingEntity) entity;
|
LivingEntity living = (LivingEntity) entity;
|
||||||
@@ -51,8 +51,7 @@ public class PotionProjectile implements GunnersProjectile {
|
|||||||
Entity arrow = world.spawnEntity(loc, EntityType.SPLASH_POTION);
|
Entity arrow = world.spawnEntity(loc, EntityType.SPLASH_POTION);
|
||||||
if (Inaccuracy != 0f) {
|
if (Inaccuracy != 0f) {
|
||||||
arrow.setVelocity(loc.getDirection().multiply(velocity).add(Randomise()).subtract(Randomise()));
|
arrow.setVelocity(loc.getDirection().multiply(velocity).add(Randomise()).subtract(Randomise()));
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
arrow.setVelocity(loc.getDirection().multiply(velocity));
|
arrow.setVelocity(loc.getDirection().multiply(velocity));
|
||||||
}
|
}
|
||||||
arrow.setMetadata("isExplosiveProj", SiegeEngines.addMetaDataValue("true"));
|
arrow.setMetadata("isExplosiveProj", SiegeEngines.addMetaDataValue("true"));
|
||||||
|
|||||||
Reference in new issue
Block a user